Permalink
Browse files

Fixed two jslint warnings

  • Loading branch information...
1 parent 4ee9438 commit 27d220d7d062057046fdb41f2bba895a0c55af6a @eolsson eolsson committed Aug 15, 2011
Showing with 5 additions and 4 deletions.
  1. +1 −2 js/adapters/prototype-adapter.src.js
  2. +2 −1 js/highcharts.src.js
  3. +2 −0 js/parts/Chart.js
  4. +0 −1 js/parts/Intro.js
@@ -14,7 +14,6 @@
*/
// JSLint options:
-/*jslint forin: true */
/*global Effect, Class, Highcharts, Event, $, $A */
// Adapter interface between prototype and the Highcarts charting library
@@ -186,7 +185,7 @@ return {
event = HighchartsAdapter.addNS(event);
}
$(el).stopObserving(event, handler);
- } if (window == el) {
+ } if (window === el) {
Event.stopObserving(el, event, handler);
} else {
HighchartsAdapter._extend(el);
View
@@ -10,7 +10,6 @@
*/
// JSLint options:
-/*jslint forin: true */
/*global document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout, location, jQuery, $ */
(function () {
@@ -8082,7 +8081,9 @@ function Chart(options, callback) {
var ONREADYSTATECHANGE = 'onreadystatechange',
COMPLETE = 'complete';
// Note: in spite of JSLint's complaints, win == win.top is required
+ /*jslint eqeq: true*/
if (!hasSVG && win == win.top && doc.readyState !== COMPLETE) {
+ /*jslint eqeq: false*/
doc.attachEvent(ONREADYSTATECHANGE, function () {
doc.detachEvent(ONREADYSTATECHANGE, firstRender);
if (doc.readyState === COMPLETE) {
View
@@ -4114,7 +4114,9 @@ function Chart(options, callback) {
var ONREADYSTATECHANGE = 'onreadystatechange',
COMPLETE = 'complete';
// Note: in spite of JSLint's complaints, win == win.top is required
+ /*jslint eqeq: true*/
if (!hasSVG && win == win.top && doc.readyState !== COMPLETE) {
+ /*jslint eqeq: false*/
doc.attachEvent(ONREADYSTATECHANGE, function () {
doc.detachEvent(ONREADYSTATECHANGE, firstRender);
if (doc.readyState === COMPLETE) {
View
@@ -10,7 +10,6 @@
*/
// JSLint options:
-/*jslint forin: true */
/*global document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout, location, jQuery, $ */
(function () {

0 comments on commit 27d220d

Please sign in to comment.