Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/core/scope.dart
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class Scope implements Map {
$watchCollectionWatch = (_) {
newValue = objGetter(this, _filters);

if (newValue is! Map && newValue is! List) {
if (newValue is! Map && newValue is! Iterable) {
if (!_identical(oldValue, newValue)) {
oldValue = newValue;
changeDetected++;
Expand Down
9 changes: 9 additions & 0 deletions test/core/scope_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,15 @@ main() {
log = [];
$rootScope.$digest();
expect(log).toEqual(['["b",[],{}]']);

$rootScope.obj = _toJsonableIterable(['a']);
log = [];
$rootScope.$digest();
expect(log).toEqual(['["a"]']);

$rootScope.obj = _toJsonableIterable(['a']);
$rootScope.$digest();
expect(log).toEqual(['["a"]']);
});


Expand Down