@@ -267,19 +267,6 @@ HTMLElement.prototype.removeEventListener = function(event, method){
267267 }
268268} ;
269269
270- HTMLImageElement = function ( ) { } ;
271- HTMLImageElement . prototype = ejecta . __image__proto__ ;
272-
273- HTMLCanvasElement = function ( ) { } ;
274- HTMLCanvasElement . prototype = ejecta . __canvas__proto__ ;
275-
276- HTMLVideoElement = function ( ) { } ;
277- HTMLVideoElement . prototype = ejecta . __video__proto__ ;
278-
279- HTMLAudioElement = function ( ) { } ;
280- HTMLAudioElement . prototype = ejecta . __audio__proto__ ;
281-
282-
283270// The document object
284271window . document = {
285272 readyState : 'complete' ,
@@ -388,6 +375,29 @@ window.document = {
388375 }
389376} ;
390377
378+
379+ ( function ( ) {
380+
381+ var element = document . createElement ( "img" ) ;
382+ HTMLImageElement = function ( ) { } ;
383+ HTMLImageElement . prototype = element . __proto__ ;
384+
385+ var element = document . createElement ( "canvas" ) ;
386+ HTMLCanvasElement = function ( ) { } ;
387+ HTMLCanvasElement . prototype = element . __proto__ ;
388+
389+ var element = document . createElement ( "video" ) ;
390+ HTMLVideoElement = function ( ) { } ;
391+ HTMLVideoElement . prototype = element . __proto__ ;
392+
393+ var element = document . createElement ( "audio" ) ;
394+ HTMLAudioElement = function ( ) { } ;
395+ HTMLAudioElement . prototype = element . __proto__ ;
396+
397+ } ) ( ) ;
398+
399+
400+
391401window . canvas . addEventListener = window . addEventListener = function ( type , callback ) {
392402 window . document . addEventListener ( type , callback ) ;
393403} ;
0 commit comments