JSHint headless-ember

- Mark all exported vars
- Mark redefined global vars
- Suppress leak warning for the redefinition of jQuery
This commit is contained in:
Nick Schonning 2014-03-11 03:18:57 -04:00
parent 3782fbed2b
commit 9f8d608a8d
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,4 @@
app/assets/javascripts/defer/html-sanitizer-bundle.js
lib/headless-ember.js
lib/javascripts/locale/
lib/javascripts/messageformat.js
lib/javascripts/moment.js

View File

@ -1,3 +1,5 @@
/*global Element:true, document:true, window:true, $:true, jQuery:true */
/*exported precompileEmberHandlebars, $, jQuery */
// DOM
var Element = {};
Element.firstChild = function () { return Element; };
@ -11,8 +13,10 @@ this.document = document;
var console = window.console = {};
console.log = console.info = console.warn = console.error = function(){};
/*jshint -W120 */
// jQuery
var $ = jQuery = window.jQuery = function() { return jQuery; };
/*jshint +W120*/
jQuery.ready = function() { return jQuery; };
jQuery.inArray = function() { return jQuery; };
jQuery.event = {