This project is archived and is in readonly mode.

#1035 ✓resolved
Robin Summerhill

Undefined method 'each' called in Fx.CSS.search

Reported by Robin Summerhill | October 13th, 2010 @ 03:36 AM | in 1.3.1 (closed)

Replace Element.Styles.each(...) with Object.each(Element.Styles, ...)

diff --git a/Source/Fx/Fx.CSS.js b/Source/Fx/Fx.CSS.js
index 6d4ee50..b3ba9b5 100644
--- a/Source/Fx/Fx.CSS.js
+++ b/Source/Fx/Fx.CSS.js
@@ -91,7 +91,7 @@ Fx.CSS = new Class({
                                        return m.toLowerCase();
                                }) : null;
                                if (!selectorText || !selectorText.test('^' + selector + '$')) return;
-                               Element.Styles.each(function(value, style){
+                               Object.each(Element.Styles, function(value, style){
                                        if (!rule.style[style] || Element.ShortStyles[style]) return;
                                        value = String(rule.style[style]);
                                        to[style] = (value.test(/^rgb/)) ? value.rgbToHex() : value;

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

Referenced by

Pages