Bug Tracker

Modify

Ticket #3647 (closed bug: invalid)

Opened 4 years ago

Last modified 15 months ago

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:

<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

comment:1 Changed 4 years ago by flesler

  • Cc CMS added
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfilled to plugin

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.