Sha256: b6e1e54a543df389976789d877ba6fe4379b8df5038fc92f8a151e0a7a0cbbec

Contents?: true

Size: 695 Bytes

Versions: 71

Compression:

Stored size: 695 Bytes

Contents

(function() {
  var TOAST_SHOW_TIME;

  TOAST_SHOW_TIME = 3000;

  define(function() {
    var createController;
    return createController = function($toast) {
      var existingTimeout, hideToast;
      existingTimeout = void 0;
      hideToast = function() {
        return $toast.removeClass('show');
      };
      hideToast();
      return {
        showToastMessage: function(message) {
          $toast.addClass('show');
          $toast.html(message);
          if (existingTimeout != null) {
            window.clearTimeout(existingTimeout);
          }
          return existingTimeout = window.setTimeout(hideToast, TOAST_SHOW_TIME);
        }
      };
    };
  });

}).call(this);

Version data entries

71 entries across 54 versions & 5 rubygems

Version Path
rufus-0.8.2 RufusApp/Frank/frankified_build/Frankified.app/frank_static_resources.bundle/js/toast_controller.js
rufus-0.8.2 RufusApp/Frank/frank_static_resources.bundle/js/toast_controller.js
rufus-0.8.1 RufusApp/Frank/frank_static_resources.bundle/js/toast_controller.js
rufus-0.8.1 RufusApp/Frank/frankified_build/Frankified.app/frank_static_resources.bundle/js/toast_controller.js
rufus-0.8 RufusApp/Frank/frankified_build/Frankified.app/frank_static_resources.bundle/js/toast_controller.js
rufus-0.8 RufusApp/Frank/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.1dcc760.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
frank-cucumber-1.2.2 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.1dcc760 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.1dcc760 frank-skeleton/frank_static_resources.bundle/bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.1dcc760 frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/toast_controller.js
frank-cucumber-1.2.1 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.902fa34 frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.902fa34 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.902fa34 frank-skeleton/frank_static_resources.bundle/bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.d2d00d2 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.c13cb90 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.00af28c frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
rufus-0.7 RufusApp/Frank/frankified_build/Frankified.app/frank_static_resources.bundle/js/toast_controller.js
rufus-0.7 RufusApp/Frank/frank_static_resources.bundle/js/toast_controller.js