Skip to content

Commit

Permalink
Fixed two jslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Olsson committed Aug 15, 2011
1 parent 4ee9438 commit 27d220d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions js/adapters/prototype-adapter.src.js
Expand Up @@ -14,7 +14,6 @@
*/

// JSLint options:
/*jslint forin: true */
/*global Effect, Class, Highcharts, Event, $, $A */

// Adapter interface between prototype and the Highcarts charting library
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion js/highcharts.src.js
Expand Up @@ -10,7 +10,6 @@
*/

// JSLint options:
/*jslint forin: true */
/*global document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout, location, jQuery, $ */

(function () {
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions js/parts/Chart.js
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion js/parts/Intro.js
Expand Up @@ -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.