 
 
   unfold: (callback) ->
-    if !@isFoldedUp
+    unless @isFoldedUp
       if typeof callback is 'function'
         callback()
 


if $
  $.fn.oriDomi = (options) ->
    return @ if !oriDomiSupport

    if typeof options is 'string'

      if typeof OriDomi::[options] isnt 'function'
        return devMode and console.warn "oriDomi: No such method '#{ options }'"

      for el in @
        instance = $.data el, 'oriDomi'

        if not instance?
          return devMode and console.warn "oriDomi: Can't call #{ options }, oriDomi hasn't been initialized on this element"

        args = Array::slice.call arguments

        setTimeout =>

          unless i is limit
            do (i) =>
              setTimeout =>
                @panels[anchor][i].style.display = 'none'
              , delay * .8

          @panels[anchor][i].style[css.transform] = @_transform angle
