Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 5db3ef5

Browse files
committed
only check for is object on instance (not prototype)
R=arv BUG= Review URL: https://codereview.appspot.com/77090043
1 parent d7050c2 commit 5db3ef5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/observe.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
for (var i = 0; i < this.length; i++) {
211211
if (i)
212212
obj = obj[this[i - 1]];
213-
if (!obj)
213+
if (!isObject(obj))
214214
return;
215215
observe(obj);
216216
}
@@ -420,7 +420,7 @@
420420
var resetScheduled = false;
421421

422422
function observe(obj) {
423-
if (!isObject(obj))
423+
if (!obj)
424424
return;
425425

426426
var index = toRemove.indexOf(obj);

0 commit comments

Comments
 (0)