Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Commit

Permalink
rebuilt docs
Browse files Browse the repository at this point in the history
  • Loading branch information
reissbaker committed Aug 22, 2012
1 parent a1e0dc9 commit 1585756
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 120 deletions.
46 changes: 0 additions & 46 deletions build/infinity.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -140,12 +140,7 @@


var lastPage, var lastPage,
item = convertToItem(this, obj), item = convertToItem(this, obj),
<<<<<<< HEAD
pages = this.pages,
pageChange = false;
=======
pages = this.pages; pages = this.pages;
>>>>>>> master


this.height += item.height; this.height += item.height;
this.$el.height(this.height); this.$el.height(this.height);
Expand Down Expand Up @@ -278,11 +273,7 @@
// - `listView`: the ListView instance that wants the item. // - `listView`: the ListView instance that wants the item.
// - `possibleItem`: an object that is either a ListItem, a jQuery element, // - `possibleItem`: an object that is either a ListItem, a jQuery element,
// or a string of valid HTML. // or a string of valid HTML.
<<<<<<< HEAD

=======


>>>>>>> master
function convertToItem(listView, possibleItem) { function convertToItem(listView, possibleItem) {
var item; var item;
if(possibleItem instanceof ListItem) return possibleItem; if(possibleItem instanceof ListItem) return possibleItem;
Expand Down Expand Up @@ -320,14 +311,9 @@


for(index = 0, length = pages.length; index < length; index++) { for(index = 0, length = pages.length; index < length; index++) {
currPage = pages[index]; currPage = pages[index];
<<<<<<< HEAD
for(itemIndex = 0, pageLength = currPage.items.length; itemIndex < pageLength; itemIndex++) {
currItem = currPage.items[itemIndex];
=======
currItems = currPage.items; currItems = currPage.items;
for(itemIndex = 0, pageLength = currItems.length; itemIndex < pageLength; itemIndex++) { for(itemIndex = 0, pageLength = currItems.length; itemIndex < pageLength; itemIndex++) {
currItem = currItems[itemIndex]; currItem = currItems[itemIndex];
>>>>>>> master
nextItem = currItem.clone(); nextItem = currItem.clone();
if(newPage.hasVacancy()) { if(newPage.hasVacancy()) {
newPage.append(nextItem); newPage.append(nextItem);
Expand Down Expand Up @@ -486,18 +472,11 @@
// ---------------- // ----------------


ListView.prototype.cleanup = function() { ListView.prototype.cleanup = function() {
<<<<<<< HEAD
var pages = this.pages;
DOMEvent.detach(this);
while(pages.length > 0) {
pages.pop().cleanup();
=======
var pages = this.pages, var pages = this.pages,
page; page;
DOMEvent.detach(this); DOMEvent.detach(this);
while(page = pages.pop()) { while(page = pages.pop()) {
page.cleanup(); page.cleanup();
>>>>>>> master
} }
}; };


Expand All @@ -509,11 +488,7 @@
// bind to a throttled scroll event (and debounced resize event), and updates // bind to a throttled scroll event (and debounced resize event), and updates
// them as it fires. // them as it fires.


<<<<<<< HEAD
var DOMEvent = (function(window, $) {
=======
var DOMEvent = (function() { var DOMEvent = (function() {
>>>>>>> master
var eventIsBound = false, var eventIsBound = false,
scrollScheduled = false, scrollScheduled = false,
resizeTimeout = null, resizeTimeout = null,
Expand Down Expand Up @@ -584,13 +559,8 @@


attach: function(listView) { attach: function(listView) {
if(!eventIsBound) { if(!eventIsBound) {
<<<<<<< HEAD
$(window).on('scroll', scrollHandler);
$(window).on('resize', resizeHandler);
=======
$window.on('scroll', scrollHandler); $window.on('scroll', scrollHandler);
$window.on('resize', resizeHandler); $window.on('resize', resizeHandler);
>>>>>>> master
eventIsBound = true; eventIsBound = true;
} }
boundViews.push(listView); boundViews.push(listView);
Expand All @@ -616,13 +586,8 @@
if(boundViews[index] === listView) { if(boundViews[index] === listView) {
boundViews.splice(index, 1); boundViews.splice(index, 1);
if(boundViews.length === 0) { if(boundViews.length === 0) {
<<<<<<< HEAD
$(window).off('scroll', scrollHandler);
$(window).off('resize', resizeHandler);
=======
$window.off('scroll', scrollHandler); $window.off('scroll', scrollHandler);
$window.off('resize', resizeHandler); $window.off('resize', resizeHandler);
>>>>>>> master
eventIsBound = false; eventIsBound = false;
} }
return true; return true;
Expand Down Expand Up @@ -873,17 +838,6 @@
this.height = 0; this.height = 0;
} }


// ### clone
//
// Clones the ListItem.
ListItem.prototype.clone = function() {
var item = new ListItem(this.$el);
item.top = this.top;
item.bottom = this.bottom;
item.width = this.width;
item.height = this.height;
return item;
};


// ### clone // ### clone
// //
Expand Down
Loading

0 comments on commit 1585756

Please sign in to comment.