Ticket #3647 (closed bug: invalid)
conflict with timepickr plugin and Array.prototype.remove()
| Reported by: | CMS | Owned by: | flesler |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | plugin | Version: | 1.2.6 |
| Keywords: | Cc: | CMS | |
| Blocking: | Blocked by: |
Description
Using the timepickr plugin ( http://haineault.com/media/jquery/ui-timepickr/page/) and also somewhere in my application the remove method from John ( http://ejohn.org/blog/javascript-array-remove/) on an array, timepickr returns an error: "Node cannot be inserted at the specified point in the hierarchy" code: "3". This is because of the fact, that the method "buildMenu" from timepickr tries to append something to the "menu". If i put out the "ranges" into firebug console i get an array with three objects, the first of it contains this innerHTML:
| from) + 1 | this.length); this.length = from < 0 ? this.length + from : from; return this.push.apply(this, rest); }</span></li> |
where "am" and "pm" are the two entries in that specific array but the function that comes from Array.prototype.remove() should not be content of that array.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Bugs to this plugin are not handled on this Trac. Please contact the plugin owner directly or ask on jQuery's google group.