fixed issue with stage panning. stage node type needs to be declared before calling super constructor

This commit is contained in:
Eric Rowell
2013-09-28 21:55:57 -07:00
parent a8cbc2321d
commit e13a0b5fd8
3 changed files with 14 additions and 6 deletions

View File

@@ -55,9 +55,9 @@
Kinetic.Util.addMethods(Kinetic.Stage, {
___init: function(config) {
this.nodeType = STAGE;
// call super constructor
Kinetic.Container.call(this, config);
this.nodeType = STAGE;
this._id = Kinetic.idCounter++;
this._buildDOM();
this._bindContentEvents();