update fireball-x/fireball#433: Shielding original cc.Node and cc.Scene

This commit is contained in:
knoxHuang
2015-12-09 15:27:34 +08:00
parent ebeb018a97
commit 832e55d033
3 changed files with 2 additions and 2 deletions
-1
View File
@@ -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();
},
+1
View File
@@ -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.