I'm running the following javascript with no problem in FireFox:
In IE7 I get an error that says "Microsoft JScript runtime error:
Object doesn't support this property or method" on each of the "this."
statements.
Anyone have any issues with this and have a fix for it?
Thanks!
Code:
var multiGallery = {
init: function(options){
this.overlay = new
Element('div').setProperty('id','lbOverlay').injectInside(document.body).addEvent('click',this.close.bind(this));
this.gallery = new
Element('div').setProperty('id','gallery').injectInside(document.body);
this.fx = {
overlay: this.overlay.effect('opacity', {duration: 250}).hide()
}
},
Object doesn't support this property or method" on each of the "this."
statements.
Anyone have any issues with this and have a fix for it?
Thanks!
Comment