This project is archived and is in readonly mode.

#231 ✓resolved
dfghi

Mask problem with IE

Reported by dfghi | January 13th, 2010 @ 05:31 PM | in 1.2.4.3

I'm using mootools 1.2.4 and mootools more 1.2.4.2 (with almost everything).

I'm extending a Spinner, but the problem seems starting with Mask. I need only to pass my fxOptions to the Spinner, that should cover the whole body. Mootools docs says that the default target of the Spinner is the body.
If you instantiate "new MySpinner(null, flashSpinnerOptions)" or "new MySpinner(undefined, flashSpinnerOptions)", everything works fine under FF (and chrome and safari as well), but under IE8 you get an error on the second line of Mask.initialize, seems that this.target is null/undefined.

I was able to solve the problem changing the first line of Mask.initialize from:

this.target = document.id(target) || document.body;

to:

this.target = document.id(target) || document.id(document.body);

Unfortunately it took me a while to figure out that I could also do "new MySpinner(document.body, flashSpinnerOptions)"...

The previous description was a bit rushed, so I rewrote it completely.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

People watching this ticket

Attachments

Pages