mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
fixes #414
This commit is contained in:
@@ -33,9 +33,9 @@
|
||||
child.index = children.length;
|
||||
child.parent = this;
|
||||
children.push(child);
|
||||
this.fire('add', {
|
||||
this._fire('add', {
|
||||
child: child
|
||||
}, true);
|
||||
});
|
||||
|
||||
// chainable
|
||||
return this;
|
||||
|
@@ -6,12 +6,11 @@
|
||||
_initLayer: function(config) {
|
||||
this.nodeType = 'Layer';
|
||||
this.createAttrs();
|
||||
// call super constructor
|
||||
Kinetic.Container.call(this, config);
|
||||
|
||||
this.canvas = new Kinetic.SceneCanvas();
|
||||
this.canvas.getElement().style.position = 'absolute';
|
||||
this.hitCanvas = new Kinetic.HitCanvas();
|
||||
// call super constructor
|
||||
Kinetic.Container.call(this, config);
|
||||
},
|
||||
/**
|
||||
* get visible intersection object that contains shape and pixel data. This is the preferred
|
||||
|
Reference in New Issue
Block a user