Call to Upgrade: MooTools 1.1.2 and MooTools 1.2.4Written By David Walsh, on Monday, November 2nd 2009, 5:43pm
You’ve probably noticed a flurry of MooTools 1.2 updates recently, including updates to both MooTools Core and More. We’re happy to give them to you and hope you continue to upgrade your existing MooTools 1.2.x builds. We would like to bring to you attention an upgrade to the MooTools 1.1.2 build and MooTools 1.2.4 build which should be considered a mandatory upgrade for developers still using MooTools 1.1 and MooTools < 1.2.4.
Firefox 3.6 and document.getBoxObjectFor
The reason we stress the upgrade to MooTools 1.2.4 and MooTools 1.1.2 is the removal of the
document.getBoxObjectFor method in the upcoming Mozilla Firefox 3.6 release. Within the browser detection code of MooTools 1.1 and earlier versions of 1.2, MooTools attempts to identify the Gecko engine by checking for the existence of
document.getBoxObjectFor. Mozilla’s removal of this method in Firefox 3.6 effectively breaks Gecko detection in MooTools 1.1 and MooTools 1.2.3 down.
“What Effect Does This Have on My MooTools Build?”
Gecko detection is used within MooTools only twice — both times for event handling:
- Event.relatedTarget - Identifies the related target of any given event. This property is used in multiple places throughout the framework.
- The mousewheel event - Firefox identifies mousewheel events using “DOMMouseScroll” instead of “mousewheel.”
These items are at risk to break without upgrading your MooTools build.
The Solution Moving Forward
“Where Can I Download Upgrades?”