Skip to content

Commit

Permalink
[UPDATE] JSHint
Browse files Browse the repository at this point in the history
- remove globals declaration from .jshintrc
- inline globals declaration for base, support/capability/touch and transport/xhr
  • Loading branch information
Dirk Lüth committed Aug 13, 2015
1 parent a99620c commit 2972eda
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,5 @@
"expr":true,
"validthis":true,
"scripturl":true,
"globals":{
"module": true,
"define": true,
"console": true,
"ActiveXObject": true,
"jQuery": false,
"DocumentTouch": true
}
"globals":{}
}
2 changes: 2 additions & 0 deletions src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
* @polyfill ./polyfill/object/getownpropertydescriptor
*/

/* global console, module, define */

;(function(definition, navigator, global, document, undefined) {
'use strict';

Expand Down
2 changes: 2 additions & 0 deletions src/support/capability/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* @require ../../support
*/

/* global DocumentTouch */

;(function(definition) {
window.qoopido.register('support/capability/touch', definition, [ '../../support' ]);
}(function(modules, shared, namespace, navigator, window, document, undefined) {
Expand Down
2 changes: 2 additions & 0 deletions src/transport/xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
* @require ../promise/defer
*/

/* global ActiveXObject */

;(function(definition) {
window.qoopido.registerSingleton('transport/xhr', definition, [ '../transport', '../function/merge', '../function/unique/string', '../url', '../promise/defer' ]);
}(function(modules, shared, namespace, navigator, window, document, undefined) {
Expand Down

0 comments on commit 2972eda

Please sign in to comment.