mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
update fireball-x/fireball#433: Shielding original cc.Node and cc.Scene
This commit is contained in:
@@ -185,7 +185,6 @@ var Component = cc.Class({
|
||||
/**
|
||||
* The node this component is attached to. A component is always attached to a node.
|
||||
* @property node
|
||||
*
|
||||
* @type {ENode}
|
||||
*/
|
||||
node: {
|
||||
|
||||
@@ -232,7 +232,7 @@ cc.ProtectedNode = _ccsg.Node.extend(/** @lends cc.ProtectedNode# */{
|
||||
*/
|
||||
cleanup: function(){
|
||||
_ccsg.Node.prototype.cleanup.call(this);
|
||||
var locChildren = this._protectedChildren;
|
||||
var locChildren = this._protectedChildren;
|
||||
for(var i = 0 , len = locChildren.length; i < len; i++)
|
||||
locChildren[i].cleanup();
|
||||
},
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
|
||||
cc = {};
|
||||
|
||||
// The namespace for original nodes rendering in scene graph.
|
||||
_ccsg = {};
|
||||
|
||||
//to make sure the cc.log, cc.warn, cc.error, cc._throw and cc.assert would not throw error before init by debugger mode.
|
||||
|
||||
Reference in New Issue
Block a user