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

Unified Diff: lib/html/src/Measurement.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/Isolates.dart ('k') | lib/html/src/Serialization.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/Measurement.dart
diff --git a/lib/html/src/Measurement.dart b/lib/html/src/Measurement.dart
index 54eed3e5807bc13b3e718483c208d0ea4efb04a2..437422664b29c447e123046fa118315bf0a710be 100644
--- a/lib/html/src/Measurement.dart
+++ b/lib/html/src/Measurement.dart
@@ -132,7 +132,7 @@ void _maybeScheduleMeasurementFrame() {
* no measurements were actually requested.
*/
void _addMeasurementFrameCallback(TimeoutHandler callback) {
- if (_pendingMeasurementFrameCallbacks === null) {
+ if (_pendingMeasurementFrameCallbacks == null) {
_pendingMeasurementFrameCallbacks = <TimeoutHandler>[];
_maybeScheduleMeasurementFrame();
}
@@ -149,7 +149,7 @@ void _addMeasurementFrameCallback(TimeoutHandler callback) {
*/
Future _createMeasurementFuture(ComputeValue computeValue,
Completer completer) {
- if (_pendingRequests === null) {
+ if (_pendingRequests == null) {
_pendingRequests = <_MeasurementRequest>[];
_maybeScheduleMeasurementFrame();
}
@@ -165,7 +165,7 @@ void _completeMeasurementFutures() {
// We must compute all new values before fulfilling the futures as
// the onComplete callbacks for the futures could modify the DOM making
// subsequent measurement calculations expensive to compute.
- if (_pendingRequests !== null) {
+ if (_pendingRequests != null) {
for (_MeasurementRequest request in _pendingRequests) {
try {
request.value = request.computeValue();
@@ -180,7 +180,7 @@ void _completeMeasurementFutures() {
final readyMeasurementFrameCallbacks = _pendingMeasurementFrameCallbacks;
_pendingRequests = null;
_pendingMeasurementFrameCallbacks = null;
- if (completedRequests !== null) {
+ if (completedRequests != null) {
for (_MeasurementRequest request in completedRequests) {
if (request.exception) {
request.completer.completeException(request.value);
@@ -190,7 +190,7 @@ void _completeMeasurementFutures() {
}
}
- if (readyMeasurementFrameCallbacks !== null) {
+ if (readyMeasurementFrameCallbacks != null) {
for (TimeoutHandler handler in readyMeasurementFrameCallbacks) {
// TODO(jacobr): wrap each call to a handler in a try-catch block.
handler();
« no previous file with comments | « lib/html/src/Isolates.dart ('k') | lib/html/src/Serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698