Skip to content

Commit 4fff167

Browse files
author
David Tai
committed
check opts.parent is self.parent is missing
1 parent ab8263f commit 4fff167

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

crowdcontrol.js

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

src/views/view.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class View
5555
# Loop up the parents setting parent as the prototype so you have access to vars on it
5656
# Might be terrible, might be great, who knows?
5757
self = @
58-
parent = self.parent
58+
parent = self.parent ? opts.parent
5959
proto = Object.getPrototypeOf self
6060
while parent? && parent != proto
6161
setPrototypeOf self, parent

0 commit comments

Comments
 (0)