Skip to content

Commit

Permalink
Merge pull request #38 from jareguo/master
Browse files Browse the repository at this point in the history
_ccsg.Node should alloc instance id if defined by cc.Class
  • Loading branch information
jareguo committed Dec 12, 2015
2 parents a95b73f + 68a3687 commit c40c2e3
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 c40c2e3

Please sign in to comment.