Skip to content

Commit 9e1c31d

Browse files
committed
Use strict equal everywhere
JSHint doesn’t like lines 56, 69, and 143 but I don’t care.
1 parent db5432a commit 9e1c31d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/parse.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function byId(id) {
88
*/
99
function makeIndent(depth) {
1010
var INDENT = ' ';
11-
if (depth == 1) {
11+
if (depth === 1) {
1212
return INDENT;
1313
} else if (depth < 1) {
1414
return '';
@@ -34,7 +34,7 @@ makeIndent.cache = {};
3434
* @return {string}
3535
*/
3636
function buildPath(level) {
37-
if (level == 0) {
37+
if (level === 0) {
3838
return '.';
3939
} else {
4040
var result = '..';
@@ -72,7 +72,7 @@ function inspect(object, depth, stack) {
7272
switch (typeof object) {
7373
case 'object':
7474
var level = stack.indexOf(object);
75-
if (level != -1) {
75+
if (level !== -1) {
7676
return buildPath(level);
7777
}
7878
stack = [object].concat(stack);
@@ -112,7 +112,7 @@ var serialized = byId("serialized");
112112

113113
function outputUpdated() {
114114
var value = style.value;
115-
if (value != style.prevValue) {
115+
if (value !== style.prevValue) {
116116
style.prevValue = value;
117117
var css = CSSOM.parse(value);
118118
output.innerHTML = inspect(css);
@@ -131,7 +131,7 @@ function hashChanged() {
131131
}
132132
var name = splitted[0];
133133
var value = splitted[1];
134-
if (name == "#css") {
134+
if (name === "#css") {
135135
style.value = decodeURIComponent(value);
136136
outputUpdated();
137137
return true;

0 commit comments

Comments
 (0)