Skip to content

Commit

Permalink
normalized for JSLint
Browse files Browse the repository at this point in the history
  • Loading branch information
Evin Grano committed Mar 15, 2010
1 parent f6c83b9 commit 6b3c2fa
Show file tree
Hide file tree
Showing 58 changed files with 74 additions and 16 deletions.
1 change: 1 addition & 0 deletions frameworks/calendar/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ SCUI.PAST = 'past';
SCUI.PRESENT = 'present';
SCUI.TODAY = 'today';
SCUI.FUTURE = 'future';

3 changes: 2 additions & 1 deletion frameworks/calendar/tests/views/calendar/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ test("init basic,small for proper start on date", function() {
var view = pane.view('basic,small');
var day = view.get('monthStartOn').get('day');
equals(day, 1, 'basic,small start on date is the 1st');
});
});

3 changes: 2 additions & 1 deletion frameworks/calendar/tests/views/date/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ window.pane = pane ;
// ..........................................................
// BASIC TESTS
//
module("Basic Tests", pane.standardSetup());*/
module("Basic Tests", pane.standardSetup());*/

3 changes: 2 additions & 1 deletion frameworks/calendar/tests/views/datepicker/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ window.pane = pane ;
// ..........................................................
// BASIC TESTS
//
module("Basic Tests", pane.standardSetup());
module("Basic Tests", pane.standardSetup());

1 change: 1 addition & 0 deletions frameworks/calendar/views/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,4 @@ SCUI.CalendarView = SC.View.extend(
}
}
});

1 change: 1 addition & 0 deletions frameworks/calendar/views/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ SCUI.DateView = SC.View.extend( SCUI.SimpleButton,
}

}) ;

1 change: 1 addition & 0 deletions frameworks/calendar/views/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,4 @@ SCUI.DatePickerView = SC.View.extend(
}.observes('date')

}) ;

1 change: 1 addition & 0 deletions frameworks/dashboard/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ SCUI.WIDGET_TYPE = 'widget';

// States for a dashboard widget
SCUI.WIDGET_EDIT = 'editing';

1 change: 1 addition & 0 deletions frameworks/dashboard/mixins/dashboard_delegate.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ SCUI.DashboardDelegate = {
}

};

1 change: 1 addition & 0 deletions frameworks/dashboard/mixins/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,4 @@ SCUI.Widget = {
showDoneButton: YES

};

1 change: 1 addition & 0 deletions frameworks/dashboard/models/clock_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ SCUI.ClockWidget = SC.Object.extend( SCUI.Widget, {
}

});

1 change: 1 addition & 0 deletions frameworks/dashboard/tests/views/dashboard/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ test("Widget has a widget container", function() {
ok(position, "Widget has been assigned a default position");

});

1 change: 1 addition & 0 deletions frameworks/dashboard/views/clock_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ SCUI.ClockWidgetEditView = SC.View.extend({
})

});

1 change: 1 addition & 0 deletions frameworks/dashboard/views/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,3 +315,4 @@ SCUI.DashboardView = SC.CollectionView.extend( SCUI.DashboardDelegate, {
_dragData: null // data about the itemView currently being dragged; null when not dragging

});

1 change: 1 addition & 0 deletions frameworks/dashboard/views/missing_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ SCUI.MissingWidgetView = SC.View.extend( SC.Border, {
}

});

1 change: 1 addition & 0 deletions frameworks/dashboard/views/widget_container.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,4 @@ SCUI.WidgetContainerView = SC.View.extend( SC.Control, {
_doneButtonView: null

});

1 change: 1 addition & 0 deletions frameworks/drawing/panes/drawing.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ SCUI.DrawingPane = SC.Pane.extend({
layout: { top: 0, left: 0, bottom: 0, right: 0 }

});

1 change: 1 addition & 0 deletions frameworks/drawing/tests/snap_lines.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ test("Ignore values works", function() {
equals(view2._yPositions[0].length, 1, "should have 1 items at y:0");
equals(view2._yPositions[10].length, 1, "should have 1 items at y:100");
});

1 change: 1 addition & 0 deletions frameworks/drawing/views/drawing.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,4 @@ SCUI.DrawingView = SC.View.extend({
}
}
});

1 change: 1 addition & 0 deletions frameworks/foundation/controllers/searchable_array.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ SCUI.SearchableArrayController = SC.ArrayController.extend(
}

});

1 change: 1 addition & 0 deletions frameworks/foundation/controllers/searchable_tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,4 @@ SCUI.SearchableTreeController = SC.TreeController.extend(
return searchMatches;
}
});

1 change: 1 addition & 0 deletions frameworks/foundation/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ SCUI.DISCLOSED_STAND_ALONE = 'standAlone';
SCUI.DISCLOSED_LIST_DEPENDENT = 'listDependent';
SCUI.DISCLOSED_OPEN = 'open';
SCUI.DISCLOSED_CLOSED = 'closed';

1 change: 1 addition & 0 deletions frameworks/foundation/mixins/cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,4 @@ SCUI.Cleanup = {
_c_bindings: null

};

1 change: 1 addition & 0 deletions frameworks/foundation/mixins/drop_down.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,4 @@ SCUI.DropDown = {
}
}
};

Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,5 @@ SCUI.CollectionViewDynamicDelegate = {
return newData;
}

};
};

Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,5 @@ SCUI.DynamicCollection = {
//console.log('Returning Height: %@'.fmt(height));
return height;
}
};
};

Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ SCUI.DynamicListItem = {
var del = this.get('dynamicDelegate');
this.invokeDelegateMethod(del, 'contentViewDidChangeForContentIndex', this.owner, this, this.get('content'), this.contentIndex);
}
};
};

3 changes: 2 additions & 1 deletion frameworks/foundation/mixins/mobility.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ SCUI.Mobility = {
}
return NO;
}
};
};

1 change: 1 addition & 0 deletions frameworks/foundation/mixins/permissible.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ SCUI.Permissible = {
}

};

3 changes: 2 additions & 1 deletion frameworks/foundation/mixins/resizable.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ SCUI.Resizable = {
view.adjust('left', i.left);
return YES ;
}
};
};

1 change: 1 addition & 0 deletions frameworks/foundation/mixins/simple_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,4 @@ SCUI.SimpleButton = {
}

};

3 changes: 2 additions & 1 deletion frameworks/foundation/mixins/status_changed.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ SCUI.StatusChanged = {
if(path && this.addObserver) this.addObserver(path, this, this._sc_content_status_changed);
}
}
};
};

1 change: 1 addition & 0 deletions frameworks/foundation/panes/context_menu_pane.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ SCUI.ContextMenuPane = SC.MenuPane.extend({
}

});

1 change: 1 addition & 0 deletions frameworks/foundation/tests/mixins/drop_down.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,4 @@ test("Check toggle functionality", function() {
pane.view('simpleButton').mouseUp();
equals(pane.view('simpleButton').get('isShowingDropDown'), NO, 'simpleButton.isVisibleInWindow should be YES');
});

1 change: 1 addition & 0 deletions frameworks/foundation/tests/mixins/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ test("An Image View should use the title & alt attributes for the tooltip",funct
equals(view.$('img').get(0).title, 'This is a test tooltip', "Tooltip text matches for title attribute");
equals(view.$('img').get(0).alt, 'This is a test tooltip', "Tooltip text matches for alt attribute");
});

3 changes: 2 additions & 1 deletion frameworks/foundation/tests/views/cascading_combo/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ test("Render Test && Elements", function() {
ok(view, "View Rendered");
equals(view.$('div > .sc-label-view').get(0).innerHTML, "Setup did not meet requirements.","When setup is incorrect the view will only contain a label telling us that this is the case.");

});
});

3 changes: 2 additions & 1 deletion frameworks/foundation/tests/views/combo_box/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ test("Click on drop-down button shows autosuggest pane.", function() {
buttonView.mouseDown();
buttonView.mouseUp();

});
});

1 change: 1 addition & 0 deletions frameworks/foundation/tests/views/disclosed/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ test('Toggling', function(){
view.toggle(YES);
ok(view.isOpen,"State is Expanded after second toggle.");
});

1 change: 1 addition & 0 deletions frameworks/foundation/tests/views/select_field_tab/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ htmlbody('<style> .sc-static-layout { border: 1px red dotted; } </style>');


})();

3 changes: 2 additions & 1 deletion frameworks/foundation/tests/views/stepper/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@ test("disabled", function() {
ok(view.$().hasClass('disabled'), 'should have disabled class');
ok(!view.$().hasClass('sel'), 'should not have sel class');
});
})();
})();

3 changes: 2 additions & 1 deletion frameworks/foundation/views/cascading_combo.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,5 @@ SCUI.CascadingComboView = SC.View.extend({
}
}

});
});

1 change: 1 addition & 0 deletions frameworks/foundation/views/collapsible.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,4 @@ SCUI.CollapsibleView = SC.ContainerView.extend(
}
}
});

1 change: 1 addition & 0 deletions frameworks/foundation/views/combo_box.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,3 +636,4 @@ SCUI.ComboBoxView = SC.View.extend( SC.Control, SC.Editable, {
_shouldUpdateFilter: NO

});

1 change: 1 addition & 0 deletions frameworks/foundation/views/combo_box_old.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,3 +529,4 @@ SCUI.ComboBoxView_Old = SC.View.extend( SC.Editable, {
_keyPressed: NO // keeps track of whether or not a text field change was caused by typing or not

});

3 changes: 2 additions & 1 deletion frameworks/foundation/views/content_editable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1253,4 +1253,5 @@ SCUI.ContentEditableView = SC.WebView.extend(SC.Editable,
return selectedElement;
}

});
});

1 change: 1 addition & 0 deletions frameworks/foundation/views/disclosed.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,4 @@ SCUI.DisclosedView = SC.View.extend({
}

});

1 change: 1 addition & 0 deletions frameworks/foundation/views/select_field_tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,4 @@ SCUI.SelectFieldTab = SC.View.extend(
});

SCUI._SELECT_TAB_TRANSLATOR = {itemTitleKey: 'nameKey', itemValueKey: 'valueKey', items: 'objects'};

3 changes: 2 additions & 1 deletion frameworks/foundation/views/stepper.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,5 @@ SCUI.StepperView = SC.View.extend(

this.set('childViews', childViews);
}
});
});

1 change: 1 addition & 0 deletions frameworks/foundation/views/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,4 @@ SCUI.Upload = SC.View.extend(
}

});

1 change: 1 addition & 0 deletions frameworks/linkit/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,4 @@ LinkIt = SC.Object.create({
}

});

1 change: 1 addition & 0 deletions frameworks/linkit/mixins/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,3 +393,4 @@ LinkIt.Link = {
_endControlPt: null // for drawing bezier curve

};

1 change: 1 addition & 0 deletions frameworks/linkit/mixins/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,4 @@ LinkIt.Node = {
}

};

1 change: 1 addition & 0 deletions frameworks/linkit/mixins/node_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ LinkIt.NodeView = {
}

};

1 change: 1 addition & 0 deletions frameworks/linkit/mixins/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,3 +372,4 @@ LinkIt.Terminal = {
}

};

1 change: 1 addition & 0 deletions frameworks/linkit/tests/views/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ sc_require('views/canvas');
});

})();

1 change: 1 addition & 0 deletions frameworks/linkit/views/canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,3 +612,4 @@ LinkIt.CanvasView = SC.CollectionView.extend({
_dragData: null

});

3 changes: 2 additions & 1 deletion frameworks/linkit/views/drag_link.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,5 @@ LinkIt.DragLink = SC.View.extend( LinkIt.Link,
this.set('layoutNeedsUpdate', YES);
}

});
});

1 change: 1 addition & 0 deletions license.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ For more information about SCUI, visit http://www.itsgotwhatplanscrave.com

==========================================================================
@license */

0 comments on commit 6b3c2fa

Please sign in to comment.