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,5 @@
|
|||
// vim: et:ts=4:sw=4:sts=4:ft=javascript
|
||||
'use strict';
|
||||
|
||||
/*@
|
||||
Ox.Keyboard <o> Basic keyboard handler
|
||||
@*/
|
||||
|
|
@ -82,10 +82,18 @@ Ox.Keyboard = (function() {
|
|||
}
|
||||
|
||||
return {
|
||||
/*@
|
||||
bind <f> bind
|
||||
(id) -> <u> bind id
|
||||
@*/
|
||||
bind: function(id) {
|
||||
var index = bound.indexOf(id);
|
||||
index == -1 && bound.push(id);
|
||||
},
|
||||
/*@
|
||||
unbind <f> unbind
|
||||
(id) -> <u> unbind id
|
||||
@*/
|
||||
unbind: function(id) {
|
||||
var index = bound.indexOf(id);
|
||||
index > -1 && bound.splice(index, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue