Permalink
Browse files

AUI-1174 Source formatting

  • Loading branch information...
1 parent 00cc05a commit aa46c8fc08a0903c98fa3cf0c40d03177f75c5ed @eduardolundgren eduardolundgren committed Apr 25, 2014
View
@@ -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,
@@ -37,7 +37,7 @@
var popoverBottom = new Y.Popover({
align: {
- node: triggerBottom
+ node: '#triggerBottom'
},
bodyContent: 'Another fine body…',
headerContent: 'Header content',
View
@@ -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"
},
@@ -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" />'
}
});
@@ -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>'
}
});
@@ -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,
@@ -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,
@@ -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',
@@ -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',
@@ -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`.
@@ -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,
@@ -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 : ''
})
@@ -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');

0 comments on commit aa46c8f

Please sign in to comment.