Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
AUI-1174 Source formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardolundgren committed Apr 25, 2014
1 parent 00cc05a commit aa46c8f
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .jshintrc
Expand Up @@ -14,12 +14,12 @@
"forin": true,
"funcscope": false,
"globals": {
"ace": true,
"A": true,
"Y": true,
"AUI": true,
"YUI": true,
"YUITest": true,
"ace": true
"YUITest": true
},
"globalstrict": false,
"immed": true,
Expand Down
2 changes: 1 addition & 1 deletion demos/popover/index.html
Expand Up @@ -37,7 +37,7 @@ <h1>AlloyUI - Popover</h1>

var popoverBottom = new Y.Popover({
align: {
node: triggerBottom
node: '#triggerBottom'
},
bodyContent: 'Another fine body…',
headerContent: 'Header content',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -24,7 +24,7 @@
"grunt-contrib-clean": "0.5.0",
"grunt-contrib-compress": "~0.6.0",
"grunt-contrib-copy": "~0.5.0",
"grunt-contrib-jshint": "~0.8.0",
"grunt-contrib-jshint": "~0.10.0",
"grunt-jsbeautifier": "~0.2.6",
"which": "1.0.5"
},
Expand Down
6 changes: 4 additions & 2 deletions src/aui-datatable/js/aui-datatable-edit.js
Expand Up @@ -1653,7 +1653,8 @@ var TextCellEditor = A.Component.create({
EXTENDS: A.BaseCellEditor,

prototype: {
ELEMENT_TEMPLATE: '<input autocomplete="off" class="' + [CSS_CELLEDITOR_ELEMENT, CSS_FORM_CONTROL].join(' ') + '" type="text" />'
ELEMENT_TEMPLATE: '<input autocomplete="off" class="' + [CSS_CELLEDITOR_ELEMENT, CSS_FORM_CONTROL].join(' ') +
'" type="text" />'
}
});

Expand Down Expand Up @@ -1689,7 +1690,8 @@ var TextAreaCellEditor = A.Component.create({
EXTENDS: A.BaseCellEditor,

prototype: {
ELEMENT_TEMPLATE: '<textarea class="' + [CSS_CELLEDITOR_ELEMENT, CSS_FORM_CONTROL].join(' ') + '"></textarea>'
ELEMENT_TEMPLATE: '<textarea class="' + [CSS_CELLEDITOR_ELEMENT, CSS_FORM_CONTROL].join(' ') +
'"></textarea>'
}
});

Expand Down
3 changes: 2 additions & 1 deletion src/aui-diagram-builder/js/aui-diagram-builder-base.js
Expand Up @@ -725,7 +725,8 @@ var DiagramBuilderBase = A.Component.create({
CANVAS_TEMPLATE: '<div tabindex="1" class="' + CSS_DIAGRAM_BUILDER_CANVAS + '"></div>',
CONTENT_CONTAINER_TEMPLATE: '<div class="' + CSS_DIAGRAM_BUILDER_CONTENT_CONTAINER + '"></div>',
DROP_CONTAINER_TEMPLATE: '<div class="' + CSS_DIAGRAM_BUILDER_DROP_CONTAINER + '"></div>',
FIELDS_CONTAINER_TEMPLATE: '<ul class="' + [CSS_DIAGRAM_BUILDER_FIELDS_CONTAINER, CSS_CLEARFIX].join(' ') + '"></ul>',
FIELDS_CONTAINER_TEMPLATE: '<ul class="' + [CSS_DIAGRAM_BUILDER_FIELDS_CONTAINER, CSS_CLEARFIX].join(' ') +
'"></ul>',
TOOLBAR_CONTAINER_TEMPLATE: '<div class="' + CSS_DIAGRAM_BUILDER_TOOLBAR_CONTAINER + '"></div>',

fieldsNode: null,
Expand Down
7 changes: 4 additions & 3 deletions src/aui-palette/js/aui-palette.js
Expand Up @@ -30,11 +30,12 @@ var Lang = A.Lang,
Palette = A.Base.create('palette', A.Widget, [A.WidgetCssClass, A.WidgetToggle], {
CONTAINER_TEMPLATE: '<div class="' + CSS_PALETTE_CONTAINER + '">{content}</div>',

ITEMS_CONTAINER_TEMPLATE: '<ul class="' + CSS_PALETTE_ITEMS_CONTAINER + ' ' + CSS_PALETTE_ITEMS_CONTAINER_INDEX + '">{content}</ul>',
ITEMS_CONTAINER_TEMPLATE: '<ul class="' + CSS_PALETTE_ITEMS_CONTAINER + ' ' +
CSS_PALETTE_ITEMS_CONTAINER_INDEX + '">{content}</ul>',

ITEM_TEMPLATE: '<li class="' + CSS_PALETTE_ITEM +
' {selectedClassName}" data-column={column} data-index={index} data-row={row} data-value="{value}">' +
'<a href="" class="' + CSS_PALETTE_ITEM_INNER + '" onclick="return false;"></a>' + '</li>',
' {selectedClassName}" data-column={column} data-index={index} data-row={row} data-value="{value}">' +
'<a href="" class="' + CSS_PALETTE_ITEM_INNER + '" onclick="return false;"></a>' + '</li>',

_items: null,

Expand Down
4 changes: 2 additions & 2 deletions src/aui-popover/tests/unit/js/tests.js
Expand Up @@ -23,7 +23,7 @@ YUI.add('aui-popover-tests', function(Y) {

popoverTop = new Y.Popover({
align: {
node: triggerTop
node: '#triggerTop'
},
bodyContent: 'One fine body…',
headerContent: 'Header content',
Expand All @@ -33,7 +33,7 @@ YUI.add('aui-popover-tests', function(Y) {

popoverBottom = new Y.Popover({
align: {
node: triggerBottom
node: '#triggerBottom'
},
bodyContent: 'Another fine body…',
headerContent: 'Header content',
Expand Down
14 changes: 7 additions & 7 deletions src/aui-scheduler/js/aui-scheduler-base-view.js
Expand Up @@ -5,15 +5,15 @@
* @submodule aui-scheduler-base-view
*/

var Lang = A.Lang,
isBoolean = Lang.isBoolean,
isFunction = Lang.isFunction,
isString = Lang.isString,
var Lang = A.Lang,
isBoolean = Lang.isBoolean,
isFunction = Lang.isFunction,
isString = Lang.isString,

DateMath = A.DataType.DateMath,
DateMath = A.DataType.DateMath,

CSS_SCHEDULER_VIEW_NOSCROLL = A.getClassName('scheduler-view', 'noscroll'),
CSS_SCHEDULER_VIEW_SCROLLABLE = A.getClassName('scheduler-view', 'scrollable');
CSS_SCHEDULER_VIEW_NOSCROLL = A.getClassName('scheduler-view', 'noscroll'),
CSS_SCHEDULER_VIEW_SCROLLABLE = A.getClassName('scheduler-view', 'scrollable');

/**
* A base class for `SchedulerView`.
Expand Down
2 changes: 1 addition & 1 deletion src/aui-scheduler/js/aui-scheduler-base.js
Expand Up @@ -5,7 +5,7 @@
* @submodule aui-scheduler-base
*/

var CSS_SCHEDULER_VIEW_ = A.getClassName('scheduler-base', 'view', ''),
var CSS_SCHEDULER_VIEW_ = A.getClassName('scheduler-base', 'view', ''),
CSS_SCHEDULER_VIEW_SELECTED = A.getClassName('active'),

DateMath = A.DataType.DateMath,
Expand Down
3 changes: 2 additions & 1 deletion src/aui-scheduler/js/aui-scheduler-view-agenda.js
Expand Up @@ -399,7 +399,8 @@ var SchedulerAgendaView = A.Component.create({
color: schedulerEvent.get('color'),
content: schedulerEvent.get('content'),
dates: eventsDateFormatter.call(instance, startDate, endDate),
eventClassName: (startDate.getTime() < today.getTime()) ? CSS_EVENT_PAST : '',
eventClassName: (startDate.getTime() < today.getTime()) ?
CSS_EVENT_PAST : '',
firstClassName: (seIndex === 0) ? CSS_EVENT_FIRST : '',
lastClassName: (seIndex === schedulerEventsLength - 1) ? CSS_EVENT_LAST : ''
})
Expand Down
3 changes: 1 addition & 2 deletions src/aui-tree/tests/unit/js/tests.js
Expand Up @@ -438,8 +438,7 @@ YUI.add('aui-tree-tests', function(Y) {
rootTreeNode.get('children')[0].ioSuccessHandler(null, null, {
responseText: '[{"label": "subchild-one","leaf": true,"type": "node"},' +
'{"label": "subchild-two","leaf": true,"type": "node"},' +
'{"label": "subchild-three","leaf": true, "type": "node"}' +
']'
'{"label": "subchild-three","leaf": true, "type": "node"}]'
});

paginatorLink = rootTreeNodeBB.one('a');
Expand Down

0 comments on commit aa46c8f

Please sign in to comment.