Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: tracing/tracing/ui/base/ui.html

Issue 2390373003: Change all == to === and != to !== in trace viewer. (Closed)
Patch Set: more changes from code review Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,
« no previous file with comments | « tracing/tracing/ui/base/timing_tool.html ('k') | tracing/tracing/ui/extras/about_tracing/record_controller.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698