Commit 461eaf51 authored by Jesse Pollak's avatar Jesse Pollak
Browse files

Merge pull request #151 from jessepollak/fix-jquery-plugin

Pass correct arguments into jquery plugin
Showing with 2 additions and 2 deletions
+2 -2
......@@ -1463,7 +1463,7 @@ $.fn.extend({
};
})(this));
option['form'] = this;
$this.data('card', (data = new Card(this, option)));
$this.data('card', (data = new Card(option)));
}
if (typeof option === 'string') {
return data[option].apply(data, args);
......
......@@ -16,6 +16,6 @@ $.fn.extend card: (option, args...) ->
if value instanceof jQuery
option[key] = value[0]
option['form'] = this
$this.data 'card', (data = new Card(this, option))
$this.data 'card', (data = new Card(option))
if typeof option == 'string'
data[option].apply(data, args)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment