change fetchLineNumber to use the actual document location, controller url does not seem to be updated

This commit is contained in:
Sven Fuchs 2013-03-14 17:35:12 +01:00
parent c011cfafcd
commit 83943232db

View File

@ -1,5 +1,3 @@
Travis.LineNumberParser = Ember.Mixin.create
fetchLineNumber: ->
url = @container.lookup('router:main').get('url')
if match = url.match(/#L(\d+)$/)
match[1]
match[1] if match = document.location.hash.match(/#L(\d+)$/)