diff --git a/src/definitions/behaviors/api.js b/src/definitions/behaviors/api.js index ffbb2f0f64..66a6bd8ccd 100644 --- a/src/definitions/behaviors/api.js +++ b/src/definitions/behaviors/api.js @@ -468,7 +468,9 @@ $.api = $.fn.api = function(parameters) { } else { pushValues[pushKey] = [pushValues[pushKey] , value]; } - value = pushValues[pushKey]; + if(pushKey.indexOf('[]')===-1) { + value = pushValues[pushKey]; + } while ((k = nameKeys.pop()) !== undefined) { // foo[]