|
@@ -22,6 +22,7 @@ define([
|
|
|
return this;
|
|
|
} else if (typeof options === 'string') {
|
|
|
var ret;
|
|
|
+ var args = Array.prototype.slice.call(arguments, 1);
|
|
|
|
|
|
this.each(function () {
|
|
|
var instance = $(this).data('select2');
|
|
@@ -33,8 +34,6 @@ define([
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- var args = Array.prototype.slice.call(arguments, 1);
|
|
|
-
|
|
|
ret = instance[options].apply(instance, args);
|
|
|
});
|
|
|
|