refactored drag and drop a bit and fixed a dependency bug

This commit is contained in:
Eric Rowell
2013-01-13 22:32:08 -08:00
parent bc92dc2b6b
commit abbaef1cc6
4 changed files with 49 additions and 59 deletions

View File

@@ -33,6 +33,7 @@
Kinetic.Stage.prototype = {
_initStage: function(config) {
var dd = Kinetic.DD;
this.setDefaultAttrs({
width: 400,
height: 200
@@ -47,8 +48,8 @@
this._bindContentEvents();
Kinetic.Global.stages.push(this);
if(Kinetic.DD) {
this._initDragLayer();
if(dd) {
dd._initDragLayer(this);
}
},
/**