Forgot to add Travis.Location file

This commit is contained in:
Piotr Sarnacki 2012-10-09 12:58:21 +02:00
parent 7e6907feba
commit 9237770180

View 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