mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +08:00
replaced string literals with numbers where appropriate
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.element = document.createElement('canvas');
|
||||
this.element.style.padding = '0';
|
||||
this.element.style.margin = '0';
|
||||
this.element.style.border = '0';
|
||||
this.element.style.padding = 0;
|
||||
this.element.style.margin = 0;
|
||||
this.element.style.border = 0;
|
||||
this.element.style.background = 'transparent';
|
||||
this.context = this.element.getContext('2d');
|
||||
this.setSize(width || 0, height || 0);
|
||||
|
Reference in New Issue
Block a user