Image is not defined
-
nickg
In my envjs-like thing, I did something like the following:
// img // http://dev.w3.org/html5/spec/Overview.html#the-img-element Image = function(width, height) { // Image can free form create nodes //var tmp= window.document.createElement('img'); this._dom = tmp._dom; this.width = width; this.height = height; this.src = null; }; Image.prototype = HTMLImageElement.prototype; -
nickg
- Tag changed from image to htmlimageelement, image
-
nickg
- Assigned user set to Thatcher
Patch:
http://github.com/client9/env-js/commit/0f09339ee05702558f14ecee987...this has unit tests even!
-
Thatcher
Great work. Im going to just stay up and apply as many of these as I can
tonight. -
Thatcher
thanks again for the patch and even more so the tests. the tests helped
show that the Option interface hasnt been committed. I adjusted the tests
and patch to apply specifically to the ticket issue. I'll close the ticket
with a speciicf link to the commit. -
Thatcher
- Milestone set to 1.2.x
- Tag changed from htmlimageelement, image to htmlimageelement, image, option
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.