Hello,
Can Element::addMethods() be used to add properties to Elements in
addition to adding Methods?
I assume IE prevents properties being added to DOM::Element in
addition to preventing the adding of methods - so is it possible to
use prototype.js to add properties as well as methods to DOM::Element?
thanks for any insight.
-Eric
ex.
var myMethodsAndProperties =
{
myFirstMethod: function( arg)
{
element = $(element);
// do something
return element;
},
myFirstNewProperty: var newProperty; ????????????????
};
Element.addMethods( 'DIV', myMethodsAndProperties );
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---