Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

avoid null error on dispose when view has no subviews

  • Loading branch information...
commit 4bcc1f705ca7bbd859d0ef1baacbd4aaedd3d890 1 parent 59cac06
Adam Krebs akre54 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/chaplin/views/view.coffee
2  src/chaplin/views/view.coffee
View
@@ -365,7 +365,7 @@ define [
return if @disposed
# Dispose subviews
- subview.dispose() for subview in @subviews
+ subview.dispose() for subview in @subviews if @subviews?
# Unbind handlers of global events
@unsubscribeAllEvents()
Please sign in to comment.
Something went wrong with that request. Please try again.