Fixed issue in router model and coffeescript 1.9.1 - 195aec753e (diff-c882cf52806a3789e4220147dd29c62c)

This commit is contained in:
Martin Edenhofer 2015-04-13 18:38:10 +02:00
parent f4fe571d37
commit 12298a89e0
2 changed files with 3 additions and 6 deletions

View file

@ -15,10 +15,6 @@ group :assets do
gem 'sass-rails' #, github: 'rails/sass-rails'
gem 'coffee-rails'
gem 'coffee-script-source'
# use dedicated version of sprockets, 3.0.0 is broken
gem 'sprockets', '~> 2.0'
gem 'uglifier'
gem 'eco'
end

View file

@ -9,9 +9,10 @@ escapeRegExp = /[-[\]{}()+?.,\\^$|#\s]/g
class Path extends Spine.Module
constructor: (@path, @callback) ->
constructor: (path, callback) ->
@names = []
@path = path
@callback = callback
if typeof path is 'string'
namedParam.lastIndex = 0
while (match = namedParam.exec(path)) != null