I was reviewing the prototype library (current SVN version) to try to understand the library better. I noticed there are two implementations of the "clone" method on the Position object. There is one before the implementation of the page method and one after. They both appear to be similar actions (copy the positioning from one element to another) although the second implementation is more configurable. Am I misreading or misunderstanding the code? I am viewing this at: http://dev.rubyonrails.org/browser/spinoffs/prototype/src/position.js Eric
On 5/15/06, Eric Anderson <eric-ANzg6odk14w@public.gmane.org> wrote:> I was reviewing the prototype library (current SVN version) to try to > understand the library better. I noticed there are two implementations > of the "clone" method on the Position object.The first one is just some leftover code. It is overwritten by the second definition. A patch to remove the first definition has already been filed three months ago at http://dev.rubyonrails.org/ticket/3764 Bye, Martin