Skip to content
This repository has been archived by the owner on Jan 20, 2019. It is now read-only.

Commit

Permalink
Fixed the way methods' arguments were handled
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Masset committed Jan 31, 2013
1 parent 09240f9 commit cbbd5fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jquery.simpleselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,11 @@
// additional plugin call (function call)
} else {

var args = Array.prototype.slice.call(arguments, 1);
t.each(function(){
var t = $(this);
if(typeof(t.data('simpleselectref')[mixed]) == 'function'){
t.data('simpleselectref')[mixed](Array.prototype.slice.call(arguments, 1));
t.data('simpleselectref')[mixed](args);
}
});

Expand Down
2 changes: 1 addition & 1 deletion jquery.simpleselect.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cbbd5fa

Please sign in to comment.