| 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 {
|
|
|