Hi List!

I am using the latest version of prototype.js from the SVN, including the wonderful $$ operator to loop through a number of elements with a certain classname. In Firefox everything works fine, no JS error, but in IE I get an error in the .each function saying that an Object was expected.

What I do is

function initializePlugins() {
        $$(".plugin").each(function(plugin) {
                // do something
        }
}

within that function some events are observed. The error occurs in the catch block of the following function:

var Enumerable = {
  each: function(iterator) {
    var index = 0;
    try {
      this._each(function(value) {
        try {
          iterator(value, index++);
        } catch (e) {
          if (e != $continue) throw e;
        }
      });
    } catch (e) {
      if (e != $break) throw e;
    }
  },


Did anyone run into that error? Help anyone?

Thank you
smi
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to