     if 1 < arguments.length
       args = slice.call arguments, 1
       return -> func.apply context, if arguments.length then args.concat slice.call arguments else args
-    -> if arguments.z then func.apply context, arguments else func.call context
+    -> if arguments.length then func.apply context, arguments else func.call context
 
 Function::swiss = (parent, names...)->
   for name in names

    @remote.api.JAccount.impersonate username, (err)->
      if err then new KDNotificationView title: err.message
      else location.reload()
#
#  testKDML:->
#    {KDMLParser} = Bongo.KDML
#    kdml = new KDMLParser @classes

  debugStates     : {}
  instances       : {}

  enableLogs:do->
    oldConsole = window.console
    window.console = {}
    console[method] = noop  for method in ['log','warn','error','trace','time','timeEnd']

    enableLogs =->
      window.console = oldConsole
