forked from 0x2620/oxjs
in documentation use foo, not <code>foo</code>
This commit is contained in:
parent
bd5a4b6318
commit
73fa856900
16 changed files with 89 additions and 105 deletions
|
|
@ -4,6 +4,7 @@
|
|||
Ox.Event <o> Basic event handler
|
||||
@*/
|
||||
|
||||
// FIXME: unused
|
||||
|
||||
Ox.Event = (function() {
|
||||
|
||||
|
|
@ -18,7 +19,7 @@ Ox.Event = (function() {
|
|||
callback <f> Callback function
|
||||
data <*> Event data
|
||||
event <s> Event name
|
||||
Event names can be namespaced, like <code>'click.foo'</code>
|
||||
Event names can be namespaced, like `'click.foo'`
|
||||
@*/
|
||||
that.bind = function() {
|
||||
Ox.forEach(Ox.makeObject(arguments), function(callback, event) {
|
||||
|
|
@ -38,7 +39,7 @@ Ox.Event = (function() {
|
|||
callback <f> Callback function
|
||||
data <*> Event data
|
||||
event <s> Event name
|
||||
Event names can be namespaced, like <code>'click.foo'</code>
|
||||
Event names can be namespaced, like `'click.foo'`
|
||||
@*/
|
||||
that.bindOnce = function() {
|
||||
Ox.forEach(Ox.makeObject(arguments), function(callback, event) {
|
||||
|
|
@ -68,8 +69,7 @@ Ox.Event = (function() {
|
|||
/*@
|
||||
unbind <f> Unbinds all callbacks from an event
|
||||
To unbind a specific handler, use namespaced events, like
|
||||
<code>bind('click.foo', callback)</code>, and then
|
||||
<code>unbind('click.foo')</code>.
|
||||
`bind('click.foo', callback)`, and then `unbind('click.foo')`.
|
||||
() -> <o> The event handler
|
||||
Unbinds all events
|
||||
(event) -> <o> The event handler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue