updated jshint to 2.1.3

single quotes
This commit is contained in:
kay.one 2013-06-21 23:24:24 -07:00
commit 769331d45d
120 changed files with 233 additions and 218 deletions

View file

@ -1,4 +1,4 @@
"use strict";
'use strict';
define(['app','backgrid'], function () {
@ -10,11 +10,11 @@ define(['app','backgrid'], function () {
render: function () {
this.$el.empty();
this.$el.append(this.column.get("label"));
this.$el.append(this.column.get('label'));
if (this.column.get('sortable')) {
this.$el.addClass('clickable');
this.$el.append(" <i class='pull-right'></i>");
this.$el.append(' <i class='pull-right'></i>');
if (this.collection.state) {
var sortKey = this.collection.state.sortKey;
@ -47,11 +47,11 @@ define(['app','backgrid'], function () {
onClick: function (e) {
e.preventDefault();
var columnName = this.column.get("name");
var columnName = this.column.get('name');
if (this.column.get("sortable")) {
if (this.direction() === "ascending") {
this.sort(columnName, "descending", function (left, right) {
if (this.column.get('sortable')) {
if (this.direction() === 'ascending') {
this.sort(columnName, 'descending', function (left, right) {
var leftVal = left.get(columnName);
var rightVal = right.get(columnName);
if (leftVal === rightVal) {
@ -64,7 +64,7 @@ define(['app','backgrid'], function () {
});
}
else {
this.sort(columnName, "ascending", function (left, right) {
this.sort(columnName, 'ascending', function (left, right) {
var leftVal = left.get(columnName);
var rightVal = right.get(columnName);
if (leftVal === rightVal) {

View file

@ -1,4 +1,4 @@
"use strict";
'use strict';
define([
'app',
'backgrid',
@ -10,7 +10,7 @@ define([
template: 'Shared/Grid/PagerTemplate',
events: {
"click .pager-btn": "changePage"
'click .pager-btn': 'changePage'
},
windowSize: 1,
@ -77,12 +77,12 @@ define([
var windowStart = Math.floor(currentPage / this.windowSize) * this.windowSize;
var windowEnd = Math.min(lastPage + 1, windowStart + this.windowSize);
if (collection.mode !== "infinite") {
if (collection.mode !== 'infinite') {
for (var i = windowStart; i < windowEnd; i++) {
handles.push({
label : i + 1,
title : "No. " + (i + 1),
className : currentPage === i ? "active" :undefined,
title : 'No. ' + (i + 1),
className : currentPage === i ? 'active' :undefined,
pageNumber: i + 1
});
}
@ -94,7 +94,7 @@ define([
if (ffLabels.prev) {
handles.unshift({
label : ffLabels.prev,
className: collection.hasPrevious() ? void 0 :"disabled",
className: collection.hasPrevious() ? void 0 :'disabled',
action : 'prev'
});
}
@ -102,7 +102,7 @@ define([
if (ffLabels.first) {
handles.unshift({
label : ffLabels.first,
className: collection.hasPrevious() ? void 0 :"disabled",
className: collection.hasPrevious() ? void 0 :'disabled',
action : 'first'
});
}
@ -110,7 +110,7 @@ define([
if (ffLabels.next) {
handles.push({
label : ffLabels.next,
className: collection.hasNext() ? void 0 :"disabled",
className: collection.hasNext() ? void 0 :'disabled',
action : 'next'
});
}
@ -118,7 +118,7 @@ define([
if (ffLabels.last) {
handles.push({
label : ffLabels.last,
className: collection.hasNext() ? void 0 :"disabled",
className: collection.hasNext() ? void 0 :'disabled',
action : 'last'
});
}