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';
|
||||
|
||||
/*@
|
||||
|
|
@ -321,6 +319,10 @@ Ox.Element = function(options, self) {
|
|||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
bindKeyboard <f> bind keyboard
|
||||
() -> <o> object
|
||||
@*/
|
||||
that.bindKeyboard = function() {
|
||||
Ox.Keyboard.bind(that.id);
|
||||
return that;
|
||||
|
|
@ -410,6 +412,10 @@ Ox.Element = function(options, self) {
|
|||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
setElement <f> set $element
|
||||
($element) -> null
|
||||
@*/
|
||||
that.setElement = function($element) {
|
||||
//$element[0].className = that.$element[0].className;
|
||||
$element.addClass('OxElement').data({oxid: that.id});
|
||||
|
|
@ -418,6 +424,10 @@ Ox.Element = function(options, self) {
|
|||
that[0] = that.$element[0];
|
||||
};
|
||||
|
||||
/*@
|
||||
toggleOption <f> toggle option
|
||||
() -> <o> object
|
||||
@*/
|
||||
that.toggleOption = function() {
|
||||
var options = {};
|
||||
Ox.toArray(arguments[0]).forEach(function(key) {
|
||||
|
|
@ -480,6 +490,10 @@ Ox.Element = function(options, self) {
|
|||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
unbindKeyboard <f> unbind keyboard
|
||||
() -> <o> object
|
||||
@*/
|
||||
that.unbindKeyboard = function() {
|
||||
Ox.Keyboard.unbind(that.id);
|
||||
return that;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue