Permalink
Browse files

code cleanup

  • Loading branch information...
1 parent 37a2516 commit 4b8f89ea182bd3ad08e8002dd614a444aad18d05 @etgryphon etgryphon committed Apr 19, 2011
View
49 frameworks/calendar/tests/views/date/ui.js
@@ -1,49 +0,0 @@
-// ========================================================================
-// SCUI.DateView Tests
-// ========================================================================
-
-/* Test SCUI.DateView */
-
-/*var pane = SC.ControlTestPane.design()
- .add("basic,past", SCUI.DateView, {
- layout: {width: 50, height: 50},
- date: 1,
- timing: SCUI.PAST
- })
- .add("basic,present", SCUI.DateView, {
- layout: {width: 50, height: 50},
- date: 1,
- timing: SCUI.PRESENT
- })
- .add("basic,present,selected", SCUI.DateView, {
- layout: {width: 50, height: 50},
- date: 1,
- isSelected: YES,
- timing: SCUI.PRESENT
- })
- .add("basic,today", SCUI.DateView, {
- layout: {width: 50, height: 50},
- date: 1,
- timing: SCUI.TODAY
- })
- .add("basic,today", SCUI.DateView, {
- layout: {width: 50, height: 50},
- date: 1,
- isSelected: YES,
- timing: SCUI.TODAY
- })
- .add("basic,future", SCUI.DateView, {
- layout: {width: 50, height: 50},
- date: 1,
- timing: SCUI.FUTURE
- });
-
-
-pane.show(); // add a test to show the test pane
-window.pane = pane ;
-
-// ..........................................................
-// BASIC TESTS
-//
-module("Basic Tests", pane.standardSetup());*/
-
View
60 frameworks/calendar/views/date.js
@@ -1,60 +0,0 @@
-// ==========================================================================
-// SCUI.DateView
-// ==========================================================================
-
-sc_require('core');
-
-/** @class
-
- This is the date view that creates the date block with the number and status of the date
-
- @extends SC.View
- @author Evin Grano
- @version 0.1
- @since 0.1
-*/
-
-SCUI.DateView = SC.View.extend( SCUI.SimpleButton,
-/** @scope SCUI.DateView.prototype */ {
- classNames: ['scui-date'],
-
- // Necessary Elements
- date: null,
- calendarView: null,
- timing: SCUI.PRESENT,
- content: null,
- isSelected: NO,
-
- init: function(){
- this.set('target', this);
- this.set('action', '_selectedDate');
- sc_super();
- },
-
- // display properties that should automatically cause a refresh.
- displayProperties: ['date', 'isSelected', 'timing'],
-
- render: function(context, firstTime){
- //console.log('Render called');
- var date = this.get('date') || SC.DateTime.create();
- var timing = this.get('timing');
- var isSelected = this.get('isSelected');
-
- // First, Set the right timing classes
- context.setClass(SCUI.PAST, SCUI.PAST === timing); // addClass if YES, removeClass if NO
- context.setClass(SCUI.PRESENT, SCUI.PRESENT === timing); // addClass if YES, removeClass if NO
- context.setClass(SCUI.TODAY, SCUI.TODAY === timing); // addClass if YES, removeClass if NO
- context.setClass(SCUI.FUTURE, SCUI.FUTURE === timing); // addClass if YES, removeClass if NO
- context.setClass('sel', isSelected); // addClass if YES, removeClass if NO
- // Set the right date number
- context.begin('div').attr('class', 'date_number').push(date.get('day')).end();
- },
-
- _selectedDate: function(){
- var cv = this.get('calendarView');
- var date = this.get('date');
- if (cv) cv.set('selectedDate', date);
- }
-
-}) ;
-
View
2 frameworks/calendar/views/datepicker.js
@@ -3,8 +3,6 @@
// ==========================================================================
/*globals SCUI */
-sc_require('core');
-
/** @class
This is the Date Chooser View that creates a text field, a button that launches a calendar chooser
View
2 frameworks/foundation/mixins/dynamic_collections/collection_view_dynamic_delegate.js
@@ -2,8 +2,6 @@
// SCUI.CollectionViewDynamicDelegate
// ==========================================================================
-sc_require('core');
-
/** @mixin
TODO: [EG] Add Documentation
View
2 frameworks/foundation/mixins/dynamic_collections/dynamic_collection.js
@@ -2,8 +2,6 @@
// SCUI.DropDown
// ==========================================================================
-sc_require('core');
-
/**
@mixin:
View
2 frameworks/foundation/mixins/dynamic_collections/dynamic_list_item.js
@@ -2,8 +2,6 @@
// SCUI.DynamicListItem
// ==========================================================================
-sc_require('core');
-
/** @mixin
This mixin allows for dynamic root controllers and dynamic root heights
View
2 frameworks/foundation/mixins/tooltip.js
@@ -1,7 +1,5 @@
/*globals SCUI*/
-sc_require('core');
-
/**
@namespace
View
1 frameworks/foundation/tests/mixins/resizable.js
@@ -4,7 +4,6 @@
/**
@author Brandon Blatnick
*/
-sc_require('core');
var basic =
SC.View.design({
View
1 frameworks/foundation/tests/panes/modal_pane.js
@@ -4,7 +4,6 @@
/**
@author Brandon Blatnick
*/
-sc_require('core');
var picker =
SCUI.ModalPane.create({
View
9 frameworks/foundation/views/cascading_combo.js
@@ -1,7 +1,7 @@
//============================================================================
// SCUI.MasterDetailComboView
//============================================================================
-sc_require('core');
+
/**
This view will display two combo boxes with labels.
@@ -49,12 +49,7 @@ SCUI.CascadingComboView = SC.View.extend({
detailLabel: null,
- // PUBLIC METHODS
-
- init: function() {
- sc_super();
- },
-
+ // PUBLIC METHODS
createChildViews: function() {
var childViews = [], view;
var required = ['contentPath', 'masterValueKey', 'detailValueKey',
View
2 frameworks/foundation/views/collapsible.js
@@ -2,8 +2,6 @@
// SCUI.CollapsibleView
// ==========================================================================
-sc_require('core');
-
/** @class
This is a really simple view that toggles between two view for an expanded and a collapsed view
View
3 frameworks/foundation/views/content_editable.js
@@ -3,7 +3,6 @@
// ==========================================================================
/*globals NodeFilter SC SCUI sc_require */
-sc_require('core');
sc_require('panes/context_menu_pane');
/** @class
@@ -1397,7 +1396,7 @@ SCUI.ContentEditableView = SC.WebView.extend(SC.Editable,
return NO;
},
- // HACK: [MT] Should do something similar to what's being done on
+ // HACK: [JS] Should do something similar to what's being done on
// image creation (Assigning the newly created image to the selectedImage
// property)
// "fixed"? [JS] if no real selection, then selection returns next element
View
1 frameworks/linkit/tests/views/canvas.js
@@ -1,4 +1,3 @@
-sc_require('core');
sc_require('views/canvas');
(function() {
View
2 frameworks/sai/views/color_picker.js
@@ -38,7 +38,7 @@ SCUI.ColorPicker = SC.View.extend(
var newFrame = pv ? pv.convertFrameToView(frame, null) : frame;
// this is where colorpickers created
- // HACK: [MT] - Hack to get the color picker working at all times in IE by creating a fresh version everytime
+ // HACK: [MB] - Hack to get the color picker working at all times in IE by creating a fresh version everytime
if(!this._cp || SC.browser.msie){
// do some cleanup first if it's IE, then create the color picker

0 comments on commit 4b8f89e

Please sign in to comment.