iamnoah / writeCapture

Utility to assist the Ajax loading of HTML containing script tags that use document.write. Mailing List: http://groups.google.com/group/writecapturejs-users
http://iamnoah.github.com/writeCapture
Other
241 stars 38 forks source link

Changed for...in loop in the exec function + queuing error #52

Closed danbouckley closed 12 years ago

danbouckley commented 12 years ago

Looped the array using the array.length property. This does not loop through any array methods such as those extended by prototype.js

Write Capture 2 has fixed a few bugs but we've been experiencing but I've noticed a few array iteration conflicts if the array class has been extended. I'm aware a few javascript libraries do this (such as prototype) and have converted them to iterate over the array.length property which seems to be functioning fine.

Using the simple API: At the end of the queue javascript would throw an error as 'w.el' was undefined. I've done a quick fix for this by killing the queue if the next thing in the queue is undefined.

danbouckley commented 12 years ago

As requested.

iamnoah commented 12 years ago

Thanks!