From bb9932221a3a0bdfe2780a29b2c98b6c7725f94c Mon Sep 17 00:00:00 2001 From: dingpinglv Date: Mon, 11 Aug 2014 17:28:39 +0800 Subject: [PATCH] Fixed #2091: correct a mistake of ccui.ScrollView.removeAllChildreWithCleanup --- extensions/ccui/layouts/UILayout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/ccui/layouts/UILayout.js b/extensions/ccui/layouts/UILayout.js index 2857f20d82..ad25dc4b92 100644 --- a/extensions/ccui/layouts/UILayout.js +++ b/extensions/ccui/layouts/UILayout.js @@ -298,7 +298,7 @@ ccui.Layout = ccui.Widget.extend(/** @lends ccui.Layout# */{ * @param {Boolean} cleanup true if all running actions on all children nodes should be cleanup, false otherwise. */ removeAllChildrenWithCleanup: function(cleanup){ - ccui.Widget.prototype.removeAllChildrenWithCleanup(cleanup); + ccui.Widget.prototype.removeAllChildrenWithCleanup.call(this, cleanup); this._doLayoutDirty = true; },