    * @return {Boolean}                    статус выполнения показа сообщения
   ###
   ajaxSuccess: (successArgs) ->
-    successArgs = args successArgs
-    successArgs.shift()  if successArgs[0].target # remove event
+    # detect event as first element
+    if successArgs[0].target
+      # convert arguments to Array
+      successArgs = args successArgs
+      # remove event
+      successArgs.shift()
+    # arrange arguments
     if $.isString successArgs[0]
-      [data, textStatus, jqXHR] = successArgs
+      # from jQuery.ajax().success()
+      [data, _textStatus, jqXHR] = successArgs
     else
-      [jqXHR, ajaxSettings, data] = successArgs
+      #from. jQuery.ajaxSuccess()
+      [jqXHR, _ajaxSettings, data] = successArgs
     # prevent recall
     return false  if jqXHR.breakFlash
     jqXHR.breakFlash = true
+    # detect notice
     if $.isString data
-      return @notice data  if data.length and not $.isHTML data
+      # catch plain text message
+      data = $.trim data
+      return @notice data  if data.length <= @settings.detectPlainTextMaxLength and not $.isHTML data
     else if $.isPlainObject data
+      # catch json data with flash-notice
       return @auto data['flash']  if data['flash']
     false
 

 *
###

# TODO I18n.js and I18n-lite.js support
# TODO architecture of wiggets in ultimate/widgets.js.coffee

class UltimateFlashWidget


      slideTime: 200
      showTime: 3600
      showTimePerChar: 30
      showAjaxErrors: true                  # catch global jQuery.ajaxErrors(), try detect message and show it
      showAjaxSuccesses: true               # catch global jQuery.ajaxSuccessess(), try detect message and show it
      detectFormErrors: true                # can be function (parsedJSON)
      detectPlainTextMaxLength: 200         # if response has plain text and its length fits, show it
      hideOnClick: true                     # click on notice fire hide()
      removeOnHide: true                    # remove notice DOM-element on hide
      forceAddDotsAfterLastWord: false
      forceRemoveDotsAfterLastWord: false
      regExpLastWordWithoutDot: /[\wа-яёА-ЯЁ]{3,}$/
