removed dynamic drag and drop layer all together. In the end, the performance benefits (small) did not out weigh the complexity consequences

This commit is contained in:
Eric Rowell
2013-03-23 21:47:15 -07:00
parent c31abf6be3
commit b5c1bc633a
4 changed files with 9 additions and 59 deletions

View File

@@ -30,10 +30,6 @@
this._buildDOM();
this._bindContentEvents();
Kinetic.Global.stages.push(this);
if(dd) {
dd._initDragLayer(this);
}
},
/**
* set container dom element which contains the stage wrapper div element
@@ -309,22 +305,12 @@
// chainable
return this;
},
/**
* get drag and drop layer
*/
getDragLayer: function() {
return this.dragLayer;
},
getParent: function() {
return null;
},
getLayer: function() {
return null;
},
_isTempDDLayerActive: function() {
var dragLayer = this.dragLayer;
return dragLayer && dragLayer.getStage();
},
_setPointerPosition: function(evt) {
if(!evt) {
evt = window.event;