cleanup
This commit is contained in:
parent
bff20cd96a
commit
721989b67b
1 changed files with 12 additions and 13 deletions
|
@ -1462,7 +1462,7 @@ Ox.List = function(options, self) {
|
|||
updatePositions();
|
||||
emptyFirstPage();
|
||||
fillFirstPage();
|
||||
}
|
||||
};
|
||||
|
||||
/*@
|
||||
closePreview <f> to be called when preview is closed externally
|
||||
|
@ -1575,7 +1575,8 @@ Ox.List = function(options, self) {
|
|||
}
|
||||
emptyFirstPage();
|
||||
fillFirstPage();
|
||||
}
|
||||
};
|
||||
|
||||
/*@
|
||||
scrollToSelection <f> scroll list to current selection
|
||||
() -> <f> returns List Element
|
||||
|
@ -1622,8 +1623,7 @@ Ox.List = function(options, self) {
|
|||
fillFirstPage();
|
||||
}
|
||||
return that;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/*@
|
||||
sort <f> sort
|
||||
|
@ -1632,7 +1632,7 @@ Ox.List = function(options, self) {
|
|||
// but, fixme: better function name
|
||||
that.sort = function() {
|
||||
updateSort();
|
||||
}
|
||||
};
|
||||
|
||||
/*@
|
||||
sortList <f> sort list
|
||||
|
@ -1651,7 +1651,7 @@ Ox.List = function(options, self) {
|
|||
that.triggerEvent('sort', self.options.sort[0]);
|
||||
}
|
||||
return that;
|
||||
}
|
||||
};
|
||||
|
||||
/*@
|
||||
value <f> get/set list value
|
||||
|
@ -1668,7 +1668,6 @@ Ox.List = function(options, self) {
|
|||
var pos = Ox.isNumber(id) ? id : getPositionById(id),
|
||||
$item = self.$items[pos],
|
||||
data = $item ? $item.options('data') : {};
|
||||
//Ox.print('List', 'that.value id key value pos', id, key, value, pos)
|
||||
if (arguments.length == 1) {
|
||||
return data;
|
||||
} else if (arguments.length == 2) {
|
||||
|
|
Loading…
Reference in a new issue