mirror of
https://github.com/konvajs/konva.git
synced 2025-12-05 03:24:23 +08:00
first phase of new attrs architecture to better represent Node states
This commit is contained in:
@@ -15,9 +15,6 @@ Kinetic.Layer = function(config) {
|
||||
this.context = this.canvas.getContext('2d');
|
||||
this.canvas.style.position = 'absolute';
|
||||
|
||||
// used for serialization
|
||||
Kinetic.GlobalObject.jsonProps.call(this, []);
|
||||
|
||||
// call super constructors
|
||||
Kinetic.Container.apply(this, []);
|
||||
Kinetic.Node.apply(this, [config]);
|
||||
@@ -76,7 +73,7 @@ Kinetic.Layer.prototype = {
|
||||
*/
|
||||
_draw: function() {
|
||||
this.clear();
|
||||
if(this.visible) {
|
||||
if(this.attrs.visible) {
|
||||
this._drawChildren();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user