vendor/assets/javascripts/mercury/toolbar.button.js.coffee in kuji-mercury-rails-0.3.2 vs vendor/assets/javascripts/mercury/toolbar.button.js.coffee in kuji-mercury-rails-0.3.3
- old
+ new
@@ -47,13 +47,13 @@
url = if jQuery.isFunction(mixed) then mixed.call(@, @name) else mixed
@handled['toggle'] = true
@handled[type] = new Mercury.Panel(url, @name, @defaultDialogOptions())
when 'modal'
- @handled[type] = if jQuery.isFunction(mixed) then mixed.call(@, @name) else mixed
+ @handled[type] = if jQuery.isFunction(mixed) then mixed.apply(@, @name) else mixed
when 'lightview'
- @handled[type] = if jQuery.isFunction(mixed) then mixed.call(@, @name) else mixed
+ @handled[type] = if jQuery.isFunction(mixed) then mixed.apply(@, @name) else mixed
else throw Mercury.I18n('Unknown button type \"%s\" used for the \"%s\" button.', type, @name)
bindEvents: ->