Permalink
Browse files

Fix argument error of notification shortcut methods.

  • Loading branch information...
wuyuntao committed May 17, 2012
1 parent 1d1cf66 commit 135cf4d76944f54680b3e4653f77665d540c9570

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -11,7 +11,7 @@ define "kopi/demos/main", (require, exports, module) ->
onstart: ->
super
- this.navBar = new Navbar(position: Navbar.POS_TOP_FIXED)
+ this.navbar = new Navbar(position: Navbar.POS_TOP_FIXED)
.skeletonTo(this.viewport.element)
.render()
this.viewSwitcher = new ViewSwitcher()
@@ -15,3 +15,5 @@ define "kopi/demos/settings", (require, exports, module) ->
"item9"
"item10"
]
+
+ settings
@@ -18,8 +18,8 @@ define "kopi/ui/notification", (require, exports, module) ->
indicator: -> indicators.instance()
bubble: -> bubbles.instance()
# Shortcut methods for notification widgets
- lock: (transparent=false) -> overlays.instance().show(transparent)
+ lock: (transparent=false) -> overlays.instance().show(transparent: transparent)
unlock: -> overlays.instance().hide()
- loading: (transparent=false) -> indicators.instance().show(transparent)
+ loading: (transparent=false) -> indicators.instance().show(lock: true, transparent: transparent)
loaded: -> indicators.instance().hide()
message: (text) -> bubbles.instance().content(text).show()

0 comments on commit 135cf4d

Please sign in to comment.