lib/bowline/binders.rb in bowline-0.5.6 vs lib/bowline/binders.rb in bowline-0.5.7

- old
+ new

@@ -66,13 +66,11 @@ @windows ||= [] end def setup(window) #:nodoc: self.windows << window - window.bowline.populate( - name, initial.to_js - ).call - true + items = initial + items.try(:to_js) || [] end # Called by a window's JavaScript whenever that window is bound to this Binder. # This method populates the window's HTML with all bound class' records. # Override this if you don't want to send all the class' records to the window. \ No newline at end of file