[Proto-Scripty] question re: Element.addMethods

2009-06-21 Thread barunio
I'm trying to understand something about this example from the API docs re: Element.addMethods: Element.addMethods({ wrap: function(element, tagName) { element = $(element); var wrapper = document.createElement('tagName'); element.parentNode.replaceChild(wrapper, element); wrapp

[Proto-Scripty] Re: question re: Element.addMethods

2009-06-23 Thread barunio
; extended before it gets called. > > So I think it's the class method scenario that's the main reason you > need it. > > HTH, > -- > T.J. Crowder > tj / crowder software / com > Independent Software Engineer, consulting services available > > On Jun 20,