ippa / jaws

Jaws - HTML5 canvas javascript 2D Game Framework
https://jawsjs.ippa.se
GNU Lesser General Public License v3.0
364 stars 75 forks source link

Update text.js #100

Closed videlais closed 11 years ago

videlais commented 11 years ago

Quick fix for making sure the width and height properties are always set to either the constructor options.value or to jaws.width and/or jaws.height.

(This was removed when the default values were changed. However, it's now a problem because width and height MUST have values and the default_options object wasn't passing on its width and height during instantiation.)

ippa commented 11 years ago

I ment jaws.parseOptions() .. I have the same problem in parallax.js :)