Skip to content

Commit

Permalink
fixed lint bug, != instead of !==
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalehorn committed Jul 22, 2014
1 parent 87d557c commit 08c1079
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plottable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ var Plottable;
function _getParsedStyleValue(style, prop) {
var value = style.getPropertyValue(prop);
var parsedValue = parseFloat(value);
if (parsedValue != parsedValue) {
if (parsedValue !== parsedValue) {
return 0;
}
return parsedValue;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/domUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export module Util {
function _getParsedStyleValue(style: CSSStyleDeclaration, prop: string): number {
var value: any = style.getPropertyValue(prop);
var parsedValue = parseFloat(value);
if (parsedValue != parsedValue) {
if (parsedValue !== parsedValue) {
return 0;
}
return parsedValue;
Expand Down

0 comments on commit 08c1079

Please sign in to comment.