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

Commit

Permalink
removed console.log() messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Walkowski committed Sep 23, 2011
1 parent 4fe5890 commit 7c1a9fa
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions icongrid.js
Expand Up @@ -60,8 +60,6 @@ function GridLayout(width, height, columns, rows) {


function IconGrid(name, hostElement, datasource, layout) {

this.recursionDetector = 0;

this.CURRENT_PAGE = 0;
// used for local storage identification
Expand Down Expand Up @@ -164,12 +162,8 @@ IconGrid.prototype = {
arrangeAppsOnPageToFit: function (pageIdx, overSlot) {
var self = this;

self.recursionDetector++;
if (self.recursionDetector > 1) console.log("DANGER! ARRANGEPAGE CALLED RECURSIVELY: " + self.recursionDetector);

if (!self.dashboardState.pages[pageIdx]) {
console.log("OWA: ERROR!! non-existent page index: " + pageIdx);
self.recursionDetector--;
return null;
}
//use scratch pages to avoid allocation while dragging
Expand Down Expand Up @@ -238,7 +232,6 @@ IconGrid.prototype = {
this.inflightPages[pageIdx][i] = arrangedPage[i];
if (arrangedPage[i] && changed) {
pos = self.positionForSlot(i);
console.log("redirected: " + i);
self.gridItemCache[arrangedPage[i]].stop(true, false);
self.gridItemCache[arrangedPage[i]].animate({
left: pos.left,
Expand All @@ -249,7 +242,6 @@ IconGrid.prototype = {
}
}

self.recursionDetector--;

// return the modified page
return arrangedPage;
Expand Down Expand Up @@ -451,7 +443,7 @@ IconGrid.prototype = {
self._draggedApp = $(e.target.parentNode).attr("guid");
//check to be sure we have one
if (self._draggedApp) {
self._appIcon.children(".iconshader").removeClass("highlighted");
self._appIcon.children(".iconshader").removeClass("highlighted");
self._appIcon.addClass("liftedApp");

self._draggedAppOffsetX = self.extractNumber(self.gridItemCache[self._draggedApp].position().left);
Expand Down

0 comments on commit 7c1a9fa

Please sign in to comment.