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
sc-frank-ios-1.2.3 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
frank-cucumber-1.2.5 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
frank-cucumber-1.2.4.pre1 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
frank-pivotal-1.3.0.pre.2 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.bba52d7.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.e1e3ccb.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.1a856ca.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
frank-pivotal-1.3.0.pre.1 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
frank-pivotal-1.2.4 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
frank-pivotal-1.2.3.pre.2 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
frank-pivotal-1.2.3.pre.1 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
frank-pivotal-1.2.3 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.b7791c5.debug frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.b7791c5.debug frank-skeleton/frank_static_resources.bundle/bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.b7791c5.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
frank-cucumber-1.2.3 frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.3256dc1.debug frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.3256dc1.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.3256dc1.debug frank-skeleton/frank_static_resources.bundle/bundle/js/toast_controller.js
sc-frank-cucumber-1.2.1.9c95c03.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.js