Side navigation
#3647 closed bug (invalid)
Opened November 25, 2008 11:01AM UTC
Closed November 25, 2008 11:18AM UTC
Last modified March 14, 2012 11:49PM UTC
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 < 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.
Attachments (0)
Change History (1)
Changed November 25, 2008 11:18AM UTC by comment:1
cc: | → CMS |
---|---|
component: | unfilled → plugin |
resolution: | → invalid |
status: | new → closed |
Bugs to this plugin are not handled on this Trac. Please contact the plugin owner directly or ask on jQuery's google group.