Sha256: 4c36b351ed68d506bbaa2f8084f6f17a7eb43924ce6cb0211bcac94015648ec2
Contents?: true
Size: 389 Bytes
Versions: 71
Compression:
Stored size: 389 Bytes
Contents
TOAST_SHOW_TIME = 3000 define -> createController = ($toast)-> existingTimeout = undefined hideToast = -> $toast.removeClass('show') hideToast() showToastMessage: (message)-> $toast.addClass('show') $toast.html(message) window.clearTimeout(existingTimeout) if existingTimeout? existingTimeout = window.setTimeout( hideToast, TOAST_SHOW_TIME )
Version data entries
71 entries across 54 versions & 5 rubygems