From 1fa042f233c1b7c790032c6631d487c21ca1f73e Mon Sep 17 00:00:00 2001 From: Thai Tran Date: Wed, 8 Apr 2015 11:04:02 -0700 Subject: [PATCH] Adding horizon to jshint Suppressing error by adding horizon to global jshint configuration. Change-Id: Ibd7d0262255a567a1e0c9efcc25bd32a8a3f86b4 Closes-bug: #1441780 --- .jshintrc | 1 + horizon/static/horizon/js/horizon.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.jshintrc b/.jshintrc index 466b308094..0d32f48291 100644 --- a/.jshintrc +++ b/.jshintrc @@ -4,6 +4,7 @@ "evil": true, "globals": { + "horizon": false, "jQuery": false, "$": false, diff --git a/horizon/static/horizon/js/horizon.js b/horizon/static/horizon/js/horizon.js index 3caf127ee1..ae6a8fe353 100644 --- a/horizon/static/horizon/js/horizon.js +++ b/horizon/static/horizon/js/horizon.js @@ -42,4 +42,4 @@ var Horizon = function () { }; // Create the one and only horizon object. -var horizon = new Horizon(); +var horizon = new Horizon(); // jshint ignore:line