!( function( factory ) {
  if ( typeof define === "function" && define.amd ) {
    define( factory );
  } else {
    factory( );
  }
}( function() {

  /**
   * alertMsg
   * @param  {[string, object]} options
   * @return {[object]}         [callback function]
   */
  var div = null;
	var alertMsg = function( options ) {

    var callback
      , defaults = {
          width     : 160,
          content   : "?",
          done      : null,
          time      : 1200,
          autohide  : true
        };

    // Build options
    if ( typeof( options ) === "string" ) {

      defaults.content = options;
      options = defaults;

    } else {

      for (var o in options) {
        defaults[o] = options[o]
      }
      options = defaults;
    }

    if (!div) {
      div = document.createElement('div');
      div.classList.add('toast');
      document.body.appendChild(div);
    }

    div.innerHTML = options.content;
    div.style.display = 'block';

    setTimeout(function(){
      div.style.marginTop = '-' + (window.getComputedStyle(div).height.replace(/px/, '') / 2) + 'px';
      div.style.opacity = "1";
    }, 10)

		if ( options.autohide ) {

			setTimeout( function() {

        div.style.opacity = 0;

        // After anmiation.
        setTimeout(function(){

          div.style.cssText = ''

          typeof callback === 'function' && callback();
          typeof options.done === 'function' && options.done();
        }, 1000)

			}, options.time );

		}

    return {
      then: function(cb){
        callback = cb;
      }
    };
	};

  window.toast = window.toast || alertMsg;

}));

@@ -410,9 +410,14 @@
  : %22
-?
+%E6%98%BE%E7%A4%BA%E4%BF%A1%E6%81%AF%E4%B8%BA%E7%A9%BA
 %22,%0A 
@@ -1613,13 +1613,32 @@
 rtMsg;%0A%0A
+  return alertMsg;%0A
 %7D));%0A

Reset default message.