On 6 Feb, 22:10, "Paul Bakaus" <paul.bak
...@googlemail.com> wrote:
> I'm very happy to announce the first alpha release of both jQuery UI 1.5
Fantastic! As this is an alpha release, I have some errors to report
when testing in Opera 9.25. Pressing [Disable] in <http://
ui.jquery.com/1.5a/demos/sortable.html> produces the following error:
JavaScript - http://ui.jquery.com/1.5a/demos/sortable.html
Event thread: click
Error:
name: ReferenceError
message: Statement on line 20: Reference to undefined variable: args
Backtrace:
Line 20 of linked script http://ui.jquery.com/1.5a/ui.sortable.js
sort[options].apply(sort, args);
Line 725 of linked script http://ui.jquery.com/1.5a/jquery.js
for (var i = 0, length = object.length, value = object[0];i <
length && callback.call(value, i, value) !== false;value = object[(+
+i)])
Line 155 of linked script http://ui.jquery.com/1.5a/jquery.js
return jQuery.each(this, callback, args);
Line 17 of linked script http://ui.jquery.com/1.5a/ui.sortable.js
return this.each((function ()
{
if (typeof options == "string")
{
var sort = $.data(this, "ui-sortable");
sort[options].apply(sort, args);
}
else
if (! $.data(this, "ui-sortable"))
new $.ui.sortable(this, options);
}
));
Line 1 of script
$("#example1").sortable("disable");
At unknown location
[statement source code not available]
Pressing [Serialize] produces the following error:
JavaScript - http://ui.jquery.com/1.5a/demos/sortable.html
Event thread: click
Error:
name: TypeError
message: Statement on line 15: Could not convert undefined or null to
object
Backtrace:
Line 15 of linked script http://ui.jquery.com/1.5a/ui.sortable.js
return $.data(this, "ui-sortable").serialize();
Line 1 of script
alert($("#example1").sortable("serialize"));
At unknown location
[statement source code not available]
Dragging the "and change" list item from the "3. Nested lists" demo
produces the following error:
JavaScript - http://ui.jquery.com/1.5a/demos/sortable.html
Event thread: mousemove
Error:
Unhandled exception: [Object DOMException]
code: 3
message: HIERARCHY_REQUEST_ERR
Backtrace:
Line 276 of linked script http://ui.jquery.com/1.5a/jquery.js
this.parentNode.insertBefore(elem, this.nextSibling);
Line 514 of linked script http://ui.jquery.com/1.5a/jquery.js
callback.call(obj, elem);
Line 725 of linked script http://ui.jquery.com/1.5a/jquery.js
for (var i = 0, length = object.length, value = object[0];i <
length && callback.call(value, i, value) !== false;value = object[(+
+i)])
Line 516 of linked script http://ui.jquery.com/1.5a/jquery.js
jQuery.each(elems, (function ()
{
var elem = clone ? (jQuery(this).clone(true))[0] : this;
if (jQuery.nodeName(elem, "script"))
{
scripts = scripts.add(elem);
}
else
{
if (elem.nodeType == 1)
scripts = scripts.add(jQuery("script", elem).remove());
callback.call(obj, elem);
}
}
));
Line 725 of linked script
http://ui.jquery.com/1.5a/jquery.js
for (var i = 0, length = object.length, value = object[0];i <
length && callback.call(value, i, value) !== false;value = object[(+
+i)])
Line 155 of linked script
http://ui.jquery.com/1.5a/jquery.js
return jQuery.each(this, callback, args);
Line 485 of linked script
http://ui.jquery.com/1.5a/jquery.js
return this.each((function ()
{
if (! elems)
{
elems = jQuery.clean(args, this.ownerDocument);
if (reverse)
elems.reverse();
}
var obj = this;
if (table && jQuery.nodeName(this, "table") &&
jQuery.nodeName(elems[0], "tr"))
obj = (this.getElementsByTagName("tbody"))[0] ||
this.appendChild(this.ownerDocument.createElement("tbody"));
var scripts = jQuery([]);
jQuery.each(elems, (function ()
{
var elem = clone ? (jQuery(this).clone(true))[0] : this;
if (jQuery.nodeName(elem, "script"))
{
scripts = scripts.add(elem);
}
else
{
if (elem.nodeType == 1)
scripts = scripts.add(jQuery("script", elem).remove());
callback.call(obj, elem);
}
}
));
scripts.each(evalScript);
}
));
Line 275 of linked script
http://ui.jquery.com/1.5a/jquery.js
return this.domManip(arguments, false, true, (function (elem)
{
this.parentNode.insertBefore(elem, this.nextSibling);
}
));
Line 298 of linked script
http://ui.jquery.com/1.5a/ui.sortable.js
this.items[i].item[(this.direction == "down" ? "before" : "after")]
(this.currentItem);
Line 137 of linked script
http://ui.jquery.com/1.5a/ui.mouse.js
if (o.drag)
Line 101 of linked script
http://ui.jquery.com/1.5a/ui.mouse.js
return self.drag.apply(self, arguments);
Line 2041 of linked script
http://ui.jquery.com/1.5a/jquery.js
var ret = handler.apply(this, args);
Line 1839 of linked script
http://ui.jquery.com/1.5a/jquery.js
val = jQuery.event.handle.apply(arguments.callee.elem, arguments);
At unknown location
[statement source code not available]
Other than that, it works mostly fine. What's the difference from the
previous UI releases, by the way?
And the Enchant effects, although really cool, don't work properly in
Opera 9.25. Most of the errors seem to stem from the same offsetLeft
problem (a bug in Opera or jQuery) that causes the box to be
positioned too far to the right (about the same as the width of the
box).
If you want these bug reports posted somewhere else, please let me
know. Thanks!