This project is archived and is in readonly mode.

#1098 ✓ duplicate
isolationism

Inner loop of Fx.CSS.search treats Elements.Styles as an array, but is an object

Reported by isolationism | November 22nd, 2010 @ 10:52 PM

If you create a new Fx.Morph instance that gets all the way to the innermost loop of the Fx.CSS.search method, MooTools tries to execute the following line:

  Element.Styles.each(function(value, style){

Except Element.Styles is an object -- not an array -- so this line always throws an exception that the 'each' method doesn't exist.

Solution:

  Object.each(Element.Styles, function(value, style){

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 »

Shared Ticket Bins

People watching this ticket

Pages