Search and Top Navigation
#8340 closed bug (duplicate)
Opened May 21, 2012 02:13PM UTC
Closed June 01, 2012 09:34PM UTC
Last modified June 01, 2012 09:34PM UTC
Error: this.placeholder[0].parentNode is null
Reported by: | Blackbird | Owned by: | Blackbird |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.sortable | Version: | 1.8.20 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In function
_clear(), there is the following line:
this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
A check is missing IMO. In my code
this.placeholder[0].parentNodeis null when the above line is executed, therefore displaying an error in the Javascript console.
Attachments (0)
Change History (6)
Changed May 21, 2012 02:20PM UTC by comment:1
owner: | → Blackbird |
---|---|
status: | new → pending |
Changed May 31, 2012 08:04AM UTC by comment:2
_comment0: | Hi Scott, \ \ I hadn't seen your answer (can one be notified by email?) \ I understand sample code would be helpful. I'll try to find the time but cannot guarantee it: the page with the bug is pretty complicated and so it's at least half of day of work to extract the problematic part. → 1338451648560152 |
---|---|
status: | pending → new |
Hi Scott,
I hadn't seen your answer (can one be notified by email?)
I understand sample code would be helpful. I'll try to find the time but cannot guarantee it: the page with the bug is pretty complicated and so it's at least half of day of work to extract the problematic part.
Edit: Posting this reply automatically updated the bug's status back to "new", I didn't do anything for that.
Changed May 31, 2012 12:41PM UTC by comment:3
status: | new → pending |
---|
Replying to [comment:2 Blackbird]:
I hadn't seen your answer (can one be notified by email?)
Yes, if you had provided an email address when you created your account, you would have been notified. You should update your account.
I understand sample code would be helpful. I'll try to find the time but cannot guarantee it: the page with the bug is pretty complicated and so it's at least half of day of work to extract the problematic part.
If you have encountered the bug and will have difficulty reproducing it, how long do you think it will take us to try to reproduce it from scratch?
Edit: Posting this reply automatically updated the bug's status back to "new", I didn't do anything for that.
You replied, which is what the pending status is all about.
Changed June 01, 2012 05:29PM UTC by comment:4
status: | pending → new |
---|
Extracted the bug: http://jsfiddle.net/YunGx/7/
How-to:
1) Drag one item from the Unpublish list to the Publish list. Repeat.
-> No problem
2) Change the order of the two items in the Publish list
-> No problem
3) Drag an item from the Publish list back to the Unpublish list
-> Bug!
Changed June 01, 2012 09:34PM UTC by comment:5
resolution: | → duplicate |
---|---|
status: | new → closed |
Please provide details about the actual bug. What are you doing that causes the error? Please create a reduced test case in jsFiddle or jsbin showing the bug.