Fix for failing test with Chrome debugging

A new error popped up ("LinkView is not attached") which required a more generalized check.
This commit is contained in:
Scott Kyle 2016-03-09 15:23:47 -08:00
parent 21a4e2543e
commit d39d437bfe
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ export function createCollection(prototype, realmId, info, mutable) {
resize();
} catch (e) {
// If the error indicates the list was deleted, then remove this listener.
if (e.message == 'Tableview is not attached') {
if (e.message.indexOf('is not attached') > 0) {
removeMutationListener(realmId, listener);
} else {
throw e;