 #     rivets.js
-#     version : 0.3.10
+#     version : 0.3.13
 #     author : Michael Richards
 #     license : MIT
 

      Rivets.config.adapter.subscribe @model, @keypath, @sync
      @sync() if Rivets.config.preloadData

    if @options.dependencies?.length
      for dependency in @options.dependencies
        if /^\./.test dependency


        Rivets.config.adapter.subscribe model, keypath, @sync


  # Unsubscribes from the model and the element.
  unbind: =>
    unless @options.bypass
      Rivets.config.adapter.unsubscribe @model, @keypath, @sync

      if @isBidirectional()
        unbindEvent @el, 'change', @publish

    if @options.dependencies?.length
      for keypath in @options.dependencies
        Rivets.config.adapter.unsubscribe @model, keypath, @sync

# A collection of bindings built from a set of parent elements.
class Rivets.View
