Bug Tracker

Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#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
Blocked by: Blocking:

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:

<li class="ui-reset ui-timepickr prefix"><span class="ui-default-state">am</span></li><li class="ui-reset ui-timepickr prefix"><span class="ui-default-state">pm</span></li><li class="ui-reset ui-timepickr prefix"><span class="ui-default-state">function (from, to) { var rest = this.slice((to
from) + 1 this.length); this.length = from &lt; 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 (1)

comment:1 Changed 12 years ago by flesler

Cc: CMS added
Component: unfilledplugin
Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.