1
0
mirror of synced 2024-11-22 13:06:08 +03:00

Method called using apply to avoid translating multiple args into single arg. Fixes #3756

This commit is contained in:
Chris Rodgers 2015-09-10 12:05:25 +01:00
parent ea074af14c
commit 441fbc2d73

View File

@ -35,7 +35,7 @@ define([
var args = Array.prototype.slice.call(arguments, 1);
var ret = instance[options](args);
var ret = instance[options].apply(instance, args);
// Check if we should be returning `this`
if ($.inArray(options, thisMethods) > -1) {