forked from 0x2620/oxjs
add documentation stubs
This commit is contained in:
parent
b3fce3a28a
commit
509745407b
102 changed files with 613 additions and 163 deletions
|
|
@ -1,5 +1,3 @@
|
|||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||
|
||||
'use strict';
|
||||
|
||||
/*@
|
||||
|
|
@ -211,6 +209,10 @@ Ox.MainMenu = function(options, self) {
|
|||
|
||||
};
|
||||
|
||||
/*@
|
||||
replaceMenu <f> replace menu
|
||||
(id, menu) -> <u> replace menu
|
||||
@*/
|
||||
that.replaceMenu = function(id, menu) {
|
||||
var position = Ox.getIndexById(self.options.menus, id);
|
||||
self.options.menus[position] = menu;
|
||||
|
|
@ -238,6 +240,10 @@ Ox.MainMenu = function(options, self) {
|
|||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
setItemTitle <f> setItemTitle
|
||||
(id, title) -> <o> set item title
|
||||
@*/
|
||||
that.setItemTitle = function(id, title) {
|
||||
var item = that.getItem(id);
|
||||
item && item.options({title: title});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue