fixed className shortcut on element notification - closes #11
This commit is contained in:
+2
-4
@@ -329,9 +329,7 @@ class Notification
|
||||
|
||||
|
||||
setGlobalPosition: () ->
|
||||
position = @getPosition()
|
||||
|
||||
[pMain, pAlign] = position
|
||||
[pMain, pAlign] = @getPosition()
|
||||
|
||||
main = positions[pMain]
|
||||
align = positions[pAlign]
|
||||
@@ -481,7 +479,7 @@ class Notification
|
||||
$.extend @options, options
|
||||
#shortcut special case
|
||||
else if $.type(options) is 'string'
|
||||
@options.color = options
|
||||
@options.className = options
|
||||
|
||||
if @container and not data
|
||||
@show false
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
* Styles in CoffeeScript go here, which will be compiled into `dist/styles`
|
||||
* Styles in JavaScript can go straight in `dist/styles/`
|
||||
Reference in New Issue
Block a user