replaced string literals with numbers where appropriate

This commit is contained in:
Eric Rowell 2013-02-15 15:26:59 -08:00
parent ca0d3790b2
commit b739d6edf7

View File

@ -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);