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