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:
parent
349a4d104e
commit
939212302a
|
@ -9,4 +9,8 @@ Travis.Location = Ember.HistoryLocation.extend
|
||||||
location = @get('location')
|
location = @get('location')
|
||||||
location.pathname + location.hash
|
location.pathname + location.hash
|
||||||
|
|
||||||
|
initState: ->
|
||||||
|
@replaceState(@getURL());
|
||||||
|
Ember.set(this, 'history', window.history)
|
||||||
|
|
||||||
Ember.Location.implementations['travis'] = Travis.Location
|
Ember.Location.implementations['travis'] = Travis.Location
|
||||||
|
|
2
assets/scripts/vendor/ember.js
vendored
2
assets/scripts/vendor/ember.js
vendored
|
@ -18548,7 +18548,7 @@ Ember.HistoryLocation = Ember.Object.extend({
|
||||||
if(!popstateReady) {
|
if(!popstateReady) {
|
||||||
return;
|
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
|
@ -1 +1 @@
|
||||||
efa2f5ca
|
ec528022
|
Loading…
Reference in New Issue
Block a user