Commit 3a10c4cf by Alex-Code

Update yii.activeForm.js

Refactored
parent 6d2bc729
...@@ -279,9 +279,7 @@ ...@@ -279,9 +279,7 @@
var deferredArray = function () { var deferredArray = function () {
var array = []; var array = [];
array.add = function(callback) { array.add = function(callback) {
var deferred = new $.Deferred(); this.push(new $.Deferred(callback));
callback.call(deferred);
this.push(deferred);
}; };
return array; return array;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment