Fix loading page with #L<line-number>

Ember changed a way HistoryLocation works and it no longer calls
getURL(). I'm monkey patching it, but I will submit a pull request to
fix it.
This commit is contained in:
Piotr Sarnacki 2012-10-22 21:45:31 +02:00
parent 349a4d104e
commit 939212302a
5 changed files with 157 additions and 153 deletions

View File

@ -9,4 +9,8 @@ Travis.Location = Ember.HistoryLocation.extend
location = @get('location')
location.pathname + location.hash
initState: ->
@replaceState(@getURL());
Ember.set(this, 'history', window.history)
Ember.Location.implementations['travis'] = Travis.Location

View File

@ -18548,7 +18548,7 @@ Ember.HistoryLocation = Ember.Object.extend({
if(!popstateReady) {
return;
}
callback(location.pathname);
callback(this.getURL());
});
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
efa2f5ca
ec528022