app/assets/javascripts/ultimate/jquery-plugin-class.js.coffee in ultimate-base-0.6.0 vs app/assets/javascripts/ultimate/jquery-plugin-class.js.coffee in ultimate-base-0.6.2
- old
+ new
@@ -97,9 +97,7 @@
_configure: (options = {}) ->
@options ||= {}
_.extend @options, options
@_reflectOptions()
- _reflectOptions: (reflectableOptions = _.result(@, 'reflectableOptions'), options = @options) ->
- if _.isArray(reflectableOptions)
- @[attr] = options[attr] for attr in reflectableOptions when not _.isUndefined(options[attr])
+ _reflectOptions: (options = @options) ->
@[attr] = value for attr, value of options when not _.isUndefined(@[attr])