Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

check if change includes a collection before trying to refresh the co…

…llection
  • Loading branch information...
commit fd1ebfc878f6837bd1bae70fb415c9b1933ed34c 1 parent 093cbda
Matt McKegg authored March 25, 2013

Showing 1 changed file with 6 additions and 4 deletions. Show diff stats Hide diff stats

  1. 10  browser/bind_dom.js
10  browser/bind_dom.js
@@ -27,10 +27,12 @@ module.exports = function(view, datasource, options){
27 27
       checkNodePosition(object, changeInfo)
28 28
     }
29 29
     if (changeInfo.action === 'update'){
30  
-      refreshNodes(changeInfo.collection.$elements)
31  
-      
32  
-      checkNodeCollection(object, changeInfo)
33  
-      checkNodePosition(object, changeInfo)
  30
+
  31
+      if (changeInfo.collection){
  32
+        refreshNodes(changeInfo.collection.$elements)
  33
+        checkNodeCollection(object, changeInfo)
  34
+        checkNodePosition(object, changeInfo)
  35
+      }
34 36
       
35 37
       refreshNodes(findElementsInObject(object), {ignoreAppendFor: changeInfo.addedItems})
36 38
       

0 notes on commit fd1ebfc

Please sign in to comment.
Something went wrong with that request. Please try again.