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

Unified Diff: samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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 | « samples/swarm/DataSource.dart ('k') | samples/swarm/swarm_ui_lib/base/Size.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart
diff --git a/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart b/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart
index 61bd0c2754e5c64d6d58aa29223bdeefb715ad94..0c782489a6a56d14f674fc53d2b94fc53737b6aa 100644
--- a/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart
+++ b/samples/swarm/swarm_ui_lib/base/AnimationScheduler.dart
@@ -11,11 +11,11 @@ class CallbackData {
static int _nextId;
- bool ready(num time) => minTime === null || minTime <= time;
+ bool ready(num time) => minTime == null || minTime <= time;
CallbackData(this.callback, this.minTime) {
// TODO(jacobr): static init needs cleanup, see http://b/4161827
- if (_nextId === null) {
+ if (_nextId == null) {
_nextId = 1;
}
id = _nextId++;
@@ -82,14 +82,14 @@ class AnimationScheduler {
void _requestAnimationFrameHelper(CallbackData callbackData) {
_callbacks.add(callbackData);
- if (_intervalId === null) {
+ if (_intervalId == null) {
_setupInterval();
}
}
void _setupInterval() {
// Assert that we never schedule multiple frames at once.
- assert(_intervalId === null);
+ assert(_intervalId == null);
if (USE_INTERVALS) {
_intervalId = window.setInterval(_step, MS_PER_FRAME);
} else {
« no previous file with comments | « samples/swarm/DataSource.dart ('k') | samples/swarm/swarm_ui_lib/base/Size.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698