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

Unified Diff: lib/html/templates/html/impl/impl_Element.darttemplate

Issue 11235029: Get rid of ===/!===. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: lib/html/templates/html/impl/impl_Element.darttemplate
diff --git a/lib/html/templates/html/impl/impl_Element.darttemplate b/lib/html/templates/html/impl/impl_Element.darttemplate
index dc39ade25aa629891d31a4bae80e12b04b5fa2e0..e5b84e8ae82cb41d43c1b24afefc440b29939b4b 100644
--- a/lib/html/templates/html/impl/impl_Element.darttemplate
+++ b/lib/html/templates/html/impl/impl_Element.darttemplate
@@ -126,7 +126,7 @@ class _ChildrenElementList implements List {
}
int lastIndexOf(Element element, [int start = null]) {
- if (start === null) start = length - 1;
+ if (start == null) start = length - 1;
return _Lists.lastIndexOf(this, element, start);
}
@@ -609,7 +609,7 @@ class _SimpleClientRect implements ClientRect {
const _SimpleClientRect(this.left, this.top, this.width, this.height);
bool operator ==(ClientRect other) {
- return other !== null && left == other.left && top == other.top
+ return other != null && left == other.left && top == other.top
&& width == other.width && height == other.height;
}
@@ -842,7 +842,7 @@ class _ElementFactoryProvider {
String parentTag = 'div';
String tag;
final match = _START_TAG_REGEXP.firstMatch(html);
- if (match !== null) {
+ if (match != null) {
tag = match.group(1).toLowerCase();
if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) {
parentTag = _CUSTOM_PARENT_TAG_MAP[tag];

Powered by Google App Engine
This is Rietveld 408576698