Skip to content

Commit 083e3df

Browse files
author
dmp42
committed
Hint and cleanup
1 parent a255500 commit 083e3df

File tree

8 files changed

+16
-14
lines changed

8 files changed

+16
-14
lines changed

.jshintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
"validthis": false,
9797

9898
"globals": {
99+
"jsBoot": false
99100
}
100101
}
101102

src/jsboot/controllers/idle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jsBoot.pack('jsBoot.controllers', function(api) {
5959
}
6060
}.bind(this));
6161

62-
var isActive = (function(e) {
62+
var isActive = (function(/*e*/) {
6363
if (lastState == BLURRED)
6464
return;
6565
lastActive = Date.now();

src/jsboot/utils/storage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ jsBoot.pack('jsBoot.utils', function(api) {
219219
key = prefix + '_' + (key || '');
220220
try {
221221
store.setItem(key, json.stringify(data));
222-
if(callback)
222+
if (callback)
223223
setTimeout(callback, 1, true);
224224
}catch (e) {
225225
store.removeItem(key);
226-
if(callback)
226+
if (callback)
227227
setTimeout(callback, 1, false);
228228
throw new api.Error('DATA_CORRUPTION',
229229
'Writing into the dataStore failed. This may be indicative of a possible data corruption.');

src/mingus/crypto/md5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414

1515
(function() {
16-
/*jshint maxstatements:69*/
16+
/*jshint maxstatements:69, maxparams:7*/
1717
/*global Mingus, unescape*/
1818
'use strict';
1919

src/mingus/xhr/digest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393

9494
/*global Mingus:true*/
9595
(function(md5, http) {
96+
/*jshint maxparams:7*/
9697
'use strict';
9798
// Private helpers
9899

src/onegateisopening/boot.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
(function() {
44
/*jshint browser:true,evil:true*/
5-
/*global Spitfire:false*/
5+
/*global Spitfire:false, define:false, exports:false*/
66
'use strict';
77

88
// List of available static resources to be served via getPack
@@ -94,7 +94,7 @@
9494
* Private helper to load a specific entry from a pack (eg: an array of urls)
9595
* Technically, abstract the statics.
9696
*/
97-
var getPackedObjects = function(pack, version, sub, useFull) {
97+
/* var getPackedObjects = function(pack, version, sub, useFull) {
9898
// Sub pattern matching on the pack (useful for stuff that come in non-versioned flavors)
9999
var re = sub && new RegExp(sub);
100100
// Version itself - defaulting on trunk
@@ -114,7 +114,7 @@
114114
}
115115
if (!inserting)
116116
throw 'Failed inserting requested ' + pack + ' version: ' + version + ' sub: ' + sub;
117-
};
117+
};*/
118118

119119
/**
120120
* Boot main: this will load the default / recommended jsboot stack.

src/onegateisopening/gate.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// Extract parameters from script uri
2828
var base;
2929
var ref = document.getElementsByTagName('script');
30-
for (var i = 0, tup, item; (i < ref.length); i++) {
30+
for (var i = 0, item; (i < ref.length); i++) {
3131
item = ref[i].src;
3232
if (/toobsj\.ylno\.si\.ereht\.js/.test(item))
3333
// Have a base on us - still, allow for deplaced routing
@@ -67,19 +67,19 @@
6767
try {
6868
bb = new WebKitBlobBuilder();
6969
} catch (e2) {
70-
try{
70+
try {
7171
bb = new MozBlobBuilder();
72-
}catch(e){
72+
}catch (e) {
7373

7474
}
7575
}
7676
}
7777

78-
if(bb){
78+
if (bb) {
7979
bb.append(ab);
8080
return bb.getBlob(mimeString);
81-
}else{
82-
return new Blob([ab], { "type" : mimeString } );
81+
}else {
82+
return new Blob([ab], { 'type' : mimeString });
8383
}
8484
};
8585

src/strict.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
(function() {
1616
// fool linter
17-
/*global whateverthenameofthis:false, console:false*/
17+
/*global whateverthenameofthis:true, console:false*/
1818
'use strict';
1919
try {
2020
whateverthenameofthis = 'will crash';

0 commit comments

Comments
 (0)