mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 14:15:36 +08:00
JSHint headless-ember
- Mark all exported vars - Mark redefined global vars - Suppress leak warning for the redefinition of jQuery
This commit is contained in:
parent
3782fbed2b
commit
9f8d608a8d
@ -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
|
||||
|
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user