OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library observe.src.path_observer; | 5 library observe.src.path_observer; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 import 'dart:math' show min; | 9 import 'dart:math' show min; |
10 | 10 |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 if (observer._isOpen) observer._iterateObjects(observe); | 920 if (observer._isOpen) observer._iterateObjects(observe); |
921 } | 921 } |
922 | 922 |
923 for (var observer in _observers.toList(growable: false)) { | 923 for (var observer in _observers.toList(growable: false)) { |
924 if (observer._isOpen) observer._check(); | 924 if (observer._isOpen) observer._check(); |
925 } | 925 } |
926 } | 926 } |
927 } | 927 } |
928 | 928 |
929 const int _MAX_DIRTY_CHECK_CYCLES = 1000; | 929 const int _MAX_DIRTY_CHECK_CYCLES = 1000; |
OLD | NEW |