Index: tracing/tracing/ui/base/ui.html |
diff --git a/tracing/tracing/ui/base/ui.html b/tracing/tracing/ui/base/ui.html |
index 93389bf4f9baf2a9e52e47bf6198cb4196439771..8e27b45ecea94c2e39b9bf70d60206be0244abf5 100644 |
--- a/tracing/tracing/ui/base/ui.html |
+++ b/tracing/tracing/ui/base/ui.html |
@@ -20,7 +20,7 @@ tr.exportTo('tr.ui.b', function() { |
*/ |
function decorate(source, constr) { |
var elements; |
- if (typeof source == 'string') |
+ if (typeof source === 'string') |
elements = Polymer.dom(tr.doc).querySelectorAll(source); |
else |
elements = [source]; |
@@ -72,7 +72,7 @@ tr.exportTo('tr.ui.b', function() { |
* constructor. |
*/ |
function define(className, opt_parentConstructor, opt_tagNS) { |
- if (typeof className == 'function') { |
+ if (typeof className === 'function') { |
throw new Error('Passing functions as className is deprecated. Please ' + |
'use (className, opt_parentConstructor) to subclass'); |
} |
@@ -108,7 +108,7 @@ tr.exportTo('tr.ui.b', function() { |
*/ |
function f() { |
if (opt_parentConstructor && |
- f.prototype.__proto__ != opt_parentConstructor.prototype) { |
+ f.prototype.__proto__ !== opt_parentConstructor.prototype) { |
throw new Error( |
className + ' prototye\'s __proto__ field is messed up. ' + |
'It MUST be the prototype of ' + opt_parentConstructor.tagName); |
@@ -148,17 +148,17 @@ tr.exportTo('tr.ui.b', function() { |
} |
function elementIsChildOf(el, potentialParent) { |
- if (el == potentialParent) |
+ if (el === potentialParent) |
return false; |
var cur = el; |
while (Polymer.dom(cur).parentNode) { |
- if (cur == potentialParent) |
+ if (cur === potentialParent) |
return true; |
cur = Polymer.dom(cur).parentNode; |
} |
return false; |
- }; |
+ } |
return { |
decorate: decorate, |