Skip to content

Commit

Permalink
Issue #4741: Temporary fix for addNode function of ccui.Widget
Browse files Browse the repository at this point in the history
  • Loading branch information
pandamicro committed Apr 12, 2014
1 parent c8e6e8b commit b1fd95a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frameworks/js-bindings/bindings/script/jsb_cocos2d_ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,10 @@ ccui.Margin = cc.Class.extend({
ccui.MarginZero = function(){
return new ccui.Margin(0,0,0,0);
};


/*
* UIWidget temporary solution to addChild
* addNode and addChild function should be merged in ccui.Widget
*/
ccui.Widget.prototype.addNode = ccui.Widget.prototype.addChild;

0 comments on commit b1fd95a

Please sign in to comment.