Duplicating a Clone

In the process of working on my Pull-quotes plugin for WordPress, I found myself in a position where in order to move further in certain directions, I had to modify the way a standard JavaScript function works — specifically the cloneNode method of the node object.

(Oh, and by the way, there’s a new version of the Pull-quote plugin available)

Ultimately I decided the best way to do this would be to duplicate it as a custom function, that I could them modify to my heart’s content. As this proved to be more difficult than I first thought it would be, largely due to the difficulty of debugging recursive functions (that is, functions that can call themselves).

Take a look if you’re interested.

This entry was posted in Webcraft and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published.