mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 11:39:41 +08:00
Update yii.activeForm.js
Refactored
This commit is contained in:
@ -279,9 +279,7 @@
|
||||
var deferredArray = function () {
|
||||
var array = [];
|
||||
array.add = function(callback) {
|
||||
var deferred = new $.Deferred();
|
||||
callback.call(deferred);
|
||||
this.push(deferred);
|
||||
this.push(new $.Deferred(callback));
|
||||
};
|
||||
return array;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user