Side navigation
#1840 closed bug (fixed)
Opened October 24, 2007 10:00AM UTC
Closed October 27, 2007 05:53AM UTC
sortable smooth false causes parentNode exception
Reported by: | rworth | Owned by: | paul |
---|---|---|---|
Priority: | critical | Milestone: | 1.2.2 |
Component: | ui | Version: | 1.2.1 |
Keywords: | sortable smooth parentNode | Cc: | |
Blocked by: | Blocking: |
Description
If sortable is called with the smooth option set to false, the following exception occurs:
this.parentNode has no properties
file:///C:/trunk/jquery/src/core.js
Line 1271
Example code:
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http:www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>test</title>
<script type="text/javascript" src="../scripts/jquery-1.2.1.js"></script>
<script type="text/javascript" src="../scripts/jquery-ui.js"></script>
</head>
<body>
<ul id="faqlist">
<li>abc</li>
<li>def</li>
<li>ghi</li>
</ul>
<script type="text/javascript">
$('#faqlist').sortable({
smooth: false
});
</script>
</body>
</html>