Skip to content

Commit

Permalink
_ccsg.Node should alloc instance id if defined by cc.Class
Browse files Browse the repository at this point in the history
  • Loading branch information
jareguo committed Dec 12, 2015
1 parent a95b73f commit 68a3687
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cocos2d/core/base-nodes/CCNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ _ccsg.Node = cc.Class({
ctor: function() {
var name = arguments[0];

this.__instanceId = cc.ClassManager.getNewInstanceId();

this._running = false;
this._reorderChildDirty = false;
this._shaderProgram = null;
Expand Down

0 comments on commit 68a3687

Please sign in to comment.