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

Version Path
sc-frank-ios-1.2.3 frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
frank-cucumber-1.2.5 frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
frank-cucumber-1.2.4.pre1 frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
frank-pivotal-1.3.0.pre.2 frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
sc-frank-cucumber-1.2.1.bba52d7.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
sc-frank-cucumber-1.2.1.e1e3ccb.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
sc-frank-cucumber-1.2.1.1a856ca.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
frank-pivotal-1.3.0.pre.1 frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
frank-pivotal-1.2.4 frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
frank-pivotal-1.2.3.pre.2 frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
frank-pivotal-1.2.3.pre.1 frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
frank-pivotal-1.2.3 frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
sc-frank-cucumber-1.2.1.b7791c5.debug frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/toast_controller.coffee
sc-frank-cucumber-1.2.1.b7791c5.debug frank-skeleton/frank_static_resources.bundle/bundle/js/toast_controller.coffee
sc-frank-cucumber-1.2.1.b7791c5.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
frank-cucumber-1.2.3 frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
sc-frank-cucumber-1.2.1.3256dc1.debug frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/toast_controller.coffee
sc-frank-cucumber-1.2.1.3256dc1.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee
sc-frank-cucumber-1.2.1.3256dc1.debug frank-skeleton/frank_static_resources.bundle/bundle/js/toast_controller.coffee
sc-frank-cucumber-1.2.1.9c95c03.debug frank-skeleton/frank_static_resources.bundle/js/toast_controller.coffee