Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

renamed displayDuration to duration

  • Loading branch information...
commit b26cbd9e00291720e08488855fff04df99392ac6 1 parent 51ad5f4
@kla authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 notificater.js.coffee
View
10 notificater.js.coffee
@@ -2,10 +2,10 @@
$container = null
messages = []
defaultOptions =
- displayDuration: 5000
- sticky: false # don't automatically close if true
- closeable: true # show close button or not on sticky notifications
- offset: [6, 0] # offset [top, left]
+ duration: 5000
+ sticky: false # don't automatically close if true
+ closeable: true # show close button or not on sticky notifications
+ offset: [6, 0] # offset [top, left]
add = (message, options={}) ->
messages.push($.extend {}, {message: message}, defaultOptions, options)
@@ -37,7 +37,7 @@
renderNotification(msg = messages.shift())
$container.fadeIn()
- $container.delay(msg.displayDuration).fadeOut(render) unless msg.sticky
+ $container.delay(msg.duration).fadeOut(render) unless msg.sticky
renderNotification = (msg) ->
$container.find(".message").html(msg.message)
Please sign in to comment.
Something went wrong with that request. Please try again.