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';
|
||||
|
||||
/*@
|
||||
|
|
@ -129,6 +127,10 @@ Ox.Form = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
/*@
|
||||
addItem <f> addItem
|
||||
(pos, item) -> <u> add item at position
|
||||
@*/
|
||||
that.addItem = function(pos, item) {
|
||||
Ox.Log('Form', 'addItem', pos)
|
||||
self.options.items.splice(pos, 0, item);
|
||||
|
|
@ -138,6 +140,10 @@ Ox.Form = function(options, self) {
|
|||
self.$items[pos].insertAfter(self.$items[pos - 1]);
|
||||
}
|
||||
|
||||
/*@
|
||||
removeItem <f> removeItem
|
||||
(pos) -> <u> remove item from position
|
||||
@*/
|
||||
that.removeItem = function(pos) {
|
||||
Ox.Log('Form', 'removeItem', pos);
|
||||
self.$items[pos].remove();
|
||||
|
|
@ -145,16 +151,25 @@ Ox.Form = function(options, self) {
|
|||
self.$items.splice(pos, 1);
|
||||
}
|
||||
|
||||
/*@
|
||||
submit <f> submit
|
||||
@*/
|
||||
that.submit = function() {
|
||||
// fixme: this seems to be unneeded
|
||||
//Ox.Log('Form', '---- that.values()', that.values())
|
||||
self.options.submit(that.values(), submitCallback);
|
||||
};
|
||||
|
||||
/*@
|
||||
valid <f> valid
|
||||
@*/
|
||||
that.valid = function() {
|
||||
return self.formIsValid;
|
||||
};
|
||||
|
||||
/*@
|
||||
values <f> values
|
||||
@*/
|
||||
that.values = function() {
|
||||
// FIXME: this should accept a single string argument to get a single value
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue