r797 - branches/1.7/coverflow trunk/ui
Author: paul.bakaus
Date: Tue Oct 14 03:00:52 2008
New Revision: 797
Modified:
branches/1.7/coverflow/ui.coverflow.js
trunk/ui/ui.sortable.js
Log:
sortable: fixed toArray method
coverflow: renamed init to _init
Modified: branches/1.7/coverflow/ui.coverflow.js
==============================================================================
--- branches/1.7/coverflow/ui.coverflow.js (original)
+++ branches/1.7/coverflow/ui.coverflow.js Tue Oct 14 03:00:52 2008
@@ -1,7 +1,7 @@
;(function($){
$.widget("ui.coverflow", {
- init: function() {
+ _init: function() {
var self = this;
Modified: trunk/ui/ui.sortable.js
==============================================================================
--- trunk/ui/ui.sortable.js (original)
+++ trunk/ui/ui.sortable.js Tue Oct 14 03:00:52 2008
@@ -69,7 +69,7 @@
var str = []; o = o || {};
$(items).each(function() {
- var res = ($(this.item || this).attr(o.attribute || 'id') |
| '').match(o.expression || (/(.+)[-=_](.+)/));
+ var res = ($(o.item || this).attr(o.attribute || 'id') |
| '').match(o.expression || (/(.+)[-=_](.+)/));
if(res) str.push((o.key || res[1]+'[]')+'='+(o.key && o.expression ?
res[1] : res[2]));
});
@@ -80,9 +80,9 @@
toArray: function(o) {
var items = this._getItemsAsjQuery(o && o.connected);
- var ret = [];
+ var ret = []; o = o || {};
- items.each(function() { ret.push($(this).attr(o.attr || 'id')); });
+ items.each(function() { ret.push($(o.item || this).attr(o.attribute |
| 'id') || ''); });
return ret;
},