Reputation: 415
The line that 'causes' the error:
IEPNGFix.process(element, 0);
Full code: http://pastie.org/648568
Note: I tried searching the phrase and IEPNGFix in Google, no luck. Also tried the MIRC Javascript chatroom before coming here.
What do I need to change?
Upvotes: 0
Views: 1426
Reputation: 1
Change the hook function this way works for me:
IEPNGFix.hook = function(evt) {
if (IEPNGFix.hook.enabled) {
IEPNGFix.process(evt.srcElement, 0);
}
};
Reference is here: http://www.twinhelix.com/cgi-bin/forum.pl/iepngfix/531
Upvotes: 0
Reputation: 6927
You need to change the hook function to:
IEPNGFix.hook = function(elm) {
if (IEPNGFix.hook.enabled) {
IEPNGFix.process(elm, 0);
}
};
Upvotes: 3
Reputation: 83299
I don't see where you define element
as anything. Try passing in a valid element value to the IEPNGFix.process
function.
Upvotes: 0