remove Ox.ListPage

This commit is contained in:
rlx 2013-08-07 07:45:12 +00:00
parent 8202aaa6e1
commit b095385d14
2 changed files with 3 additions and 16 deletions

View file

@ -382,7 +382,7 @@ Ox.List = function(options, self) {
}
function constructEmptyPage(page) {
var i, $page = Ox.ListPage().css(getPageCSS(page));
var i, $page = $('<div>').addClass('OxPage').css(getPageCSS(page));
Ox.loop(getPageLength(page), function() {
Ox.ListItem({
construct: self.options.construct
@ -855,7 +855,7 @@ Ox.List = function(options, self) {
sort: self.options.sort
}, function(result) {
var $emptyPage = self.$pages[page];
self.$pages[page] = Ox.ListPage().css(getPageCSS(page));
self.$pages[page] = $('<div>').addClass('OxPage').css(getPageCSS(page));
result.data.items.forEach(function(v, i) {
var pos = offset + i;
self.$items[pos] = Ox.ListItem({
@ -1384,7 +1384,7 @@ Ox.List = function(options, self) {
clear();
that.$content.empty();
self.$pages = [];
self.$pages[0] = Ox.Element()
self.$pages[0] = $('<div>')
.addClass('OxPage')
.css({
left: self.listMargin / 2 + 'px',

View file

@ -1,13 +0,0 @@
'use strict';
/*@
Ox.ListPage <f> ListPage Object
options <o> Options object
self <o> Shared private variable
([options[, self]]) -> <o:Ox.Element> ListPage Object
@*/
Ox.ListPage = function(options, self) {
self = self || {};
var that = Ox.Element({}, self).addClass('OxPage');
return that;
};