updated jshint to 2.1.3

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

View file

@ -1,4 +1,4 @@
"use strict";
'use strict';
define(['app','handlebars','Shared/FormatHelpers'], function (App,Handlebars) {
Handlebars.registerHelper('partial', function (templateName) {
@ -8,23 +8,23 @@ define(['app','handlebars','Shared/FormatHelpers'], function (App,Handlebars) {
return new Handlebars.SafeString(templateFunction(this));
});
Handlebars.registerHelper("debug", function (optionalValue) {
console.log("Current Context");
console.log("====================");
Handlebars.registerHelper('debug', function (optionalValue) {
console.log('Current Context');
console.log('====================');
console.log(this);
if (optionalValue) {
console.log("Value");
console.log("====================");
console.log('Value');
console.log('====================');
console.log(optionalValue);
}
});
Handlebars.registerHelper("fileSize", function (size) {
Handlebars.registerHelper('fileSize', function (size) {
return new Handlebars.SafeString(NzbDrone.Shared.FormatHelpers.FileSizeHelper(size));
});
Handlebars.registerHelper("date", function (date) {
Handlebars.registerHelper('date', function (date) {
//TODO: show actual date in tooltip
if (!date) {
return '';
@ -32,12 +32,12 @@ define(['app','handlebars','Shared/FormatHelpers'], function (App,Handlebars) {
var shortDate = Date.create(date).short();
var formattedDate = NzbDrone.Shared.FormatHelpers.DateHelper(date);
var result = '<span title="' + shortDate + '">' + formattedDate + '</span>';
var result = '<span title='' + shortDate + ''>' + formattedDate + '</span>';
return new Handlebars.SafeString(result);
});
Handlebars.registerHelper('defaultImg', function () {
return new Handlebars.SafeString('onerror="this.src=\'/content/images/poster-dark.jpg\';"');
return new Handlebars.SafeString('onerror='this.src=\'/content/images/poster-dark.jpg\';'');
});
});