app/assets/javascripts/ultimate/backbone/extra/jquery-plugin-adapter.js.coffee in ultimate-base-0.2.4 vs app/assets/javascripts/ultimate/backbone/extra/jquery-plugin-adapter.js.coffee in ultimate-base-0.3.0.alpha
- old
+ new
@@ -25,10 +25,10 @@
else
return view if _returnView
return jContainer unless argsLength
command = "_configure"
if view[command]
- return getValue(view, command)
+ return _.result(view, command)
else
$.error "Command [#{command}] does not exist on jQuery.#{pluginName}()"
else
options = if argsLength then a[0] else {}
if $.isPlainObject(options)