Forgot to add Travis.Location file
This commit is contained in:
parent
7e6907feba
commit
9237770180
12
assets/scripts/lib/travis/location.coffee
Normal file
12
assets/scripts/lib/travis/location.coffee
Normal file
|
@ -0,0 +1,12 @@
|
|||
Travis.Location = Ember.HistoryLocation.extend
|
||||
onUpdateURL: (callback) ->
|
||||
guid = Ember.guidFor(this)
|
||||
|
||||
Ember.$(window).bind 'popstate.ember-location-'+guid, (e) ->
|
||||
callback(location.pathname + location.hash)
|
||||
|
||||
getURL: ->
|
||||
location = @get('location')
|
||||
location.pathname + location.hash
|
||||
|
||||
Ember.Location.implementations['travis'] = Travis.Location
|
Loading…
Reference in New Issue
Block a user