 
     else
       if Sirius.Utils.is_function(klass)
-        1 #when it's only function
+        klass(@element)
 
     @
 


# Class which represent Views for Application
# Fluent interface for manipulate views
#
# @example:
#

  # swap content for given element
  # @return null
  swap: (attributes...) ->

    real_attributes = for a in attributes when a != null then a
    if real_attributes.length == 0
      Sirius.Application.adapter.swap(@element, @_result)
