Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix argument error of notification shortcut methods.

  • Loading branch information...
commit 135cf4d76944f54680b3e4653f77665d540c9570 1 parent 1d1cf66
@wuyuntao authored
View
4 lib/js/kopi/demos/main.js
@@ -14,15 +14,13 @@
__extends(DemoApp, _super);
- DemoApp.name = 'DemoApp';
-
function DemoApp() {
return DemoApp.__super__.constructor.apply(this, arguments);
}
DemoApp.prototype.onstart = function() {
DemoApp.__super__.onstart.apply(this, arguments);
- this.navBar = new Navbar({
+ this.navbar = new Navbar({
position: Navbar.POS_TOP_FIXED
}).skeletonTo(this.viewport.element).render();
return this.viewSwitcher = new ViewSwitcher().skeletonTo(this.viewport.element).render();
View
3  lib/js/kopi/demos/settings.js
@@ -4,9 +4,10 @@
define("kopi/demos/settings", function(require, exports, module) {
var settings;
settings = require("kopi/settings");
- return settings.kopi.demos = {
+ settings.kopi.demos = {
list: ["item1", "item2", "item3", "item4", "item5", "item6", "item7", "item8", "item9", "item10"]
};
+ return settings;
});
}).call(this);
View
11 lib/js/kopi/ui/notification.js
@@ -19,8 +19,6 @@
__extends(DuplicateNotificationError, _super);
- DuplicateNotificationError.name = 'DuplicateNotificationError';
-
function DuplicateNotificationError() {
return DuplicateNotificationError.__super__.constructor.apply(this, arguments);
}
@@ -45,7 +43,9 @@
if (transparent == null) {
transparent = false;
}
- return overlays.instance().show(transparent);
+ return overlays.instance().show({
+ transparent: transparent
+ });
},
unlock: function() {
return overlays.instance().hide();
@@ -54,7 +54,10 @@
if (transparent == null) {
transparent = false;
}
- return indicators.instance().show(transparent);
+ return indicators.instance().show({
+ lock: true,
+ transparent: transparent
+ });
},
loaded: function() {
return indicators.instance().hide();
View
2  src/coffee/kopi/demos/main.coffee
@@ -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()
View
2  src/coffee/kopi/demos/settings.coffee
@@ -15,3 +15,5 @@ define "kopi/demos/settings", (require, exports, module) ->
"item9"
"item10"
]
+
+ settings
View
4 src/coffee/kopi/ui/notification.coffee
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.