   #
   # for view1 we should use Dom level 3\4 events
   # also we should know which attributes changed (filter), therefore
-  # view1.bind(view2, with: ["id"])
+  # view1.bind(view2, to: ["id"])
   # when we change text in view1, then should changes in view2 id attribute
   #
   # ### 3 View to View relation change attributes in View1

  # when change id in view1, we should change text in view2
  #
  # ### 4 Combination of 3 and 4
  #
  # ### 5 View Model relation
  #
  # ### 6 View to any function relation
  bind: (klass) ->
    `var c = function(m){console.log(m);};`
    if klass && klass.constructor && klass.constructor.name
      if klass.constructor.name == "View"
        adapter = Sirius.Application.adapter
        elements = document.querySelectorAll(klass.element)

        #FIXME optimize this
        for element in elements
          # it's for input,textarea, select...
          if Object.keys(element).indexOf("value") != -1
            c "value"
          else

        1

  bind2: () ->
#
class Sirius.View

  constructor: (@element, clb = (txt) -> txt) ->
    @_result_fn = (args...) =>
      clb.apply(null, args...)

