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

Unified Diff: lib/html/src/dart2js_DOMImplementation.dart

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
« no previous file with comments | « lib/html/src/dart2js_Conversions.dart ('k') | lib/html/src/native_DOMPublic.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/dart2js_DOMImplementation.dart
diff --git a/lib/html/src/dart2js_DOMImplementation.dart b/lib/html/src/dart2js_DOMImplementation.dart
index 955841c2aa488b0be06926565a387e7103f22425..4ea123d34fb504fee1072625086180e4ad007a59 100644
--- a/lib/html/src/dart2js_DOMImplementation.dart
+++ b/lib/html/src/dart2js_DOMImplementation.dart
@@ -46,7 +46,7 @@ class _DOMWindowCrossFrameImpl implements Window {
_DOMWindowCrossFrameImpl(this._window);
static Window _createSafe(w) {
- if (w === window) {
+ if (identical(w, window)) {
return w;
} else {
// TODO(vsm): Cache or implement equality.
@@ -70,7 +70,7 @@ class _LocationCrossFrameImpl implements Location {
_LocationCrossFrameImpl(this._location);
static Location _createSafe(location) {
- if (location === window.location) {
+ if (identical(location, window.location)) {
return location;
} else {
// TODO(vsm): Cache or implement equality.
@@ -95,7 +95,7 @@ class _HistoryCrossFrameImpl implements History {
_HistoryCrossFrameImpl(this._history);
static History _createSafe(h) {
- if (h === window.history) {
+ if (identical(h, window.history)) {
return h;
} else {
// TODO(vsm): Cache or implement equality.
« no previous file with comments | « lib/html/src/dart2js_Conversions.dart ('k') | lib/html/src/native_DOMPublic.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698