1
0
Fork 0
forked from 0x2620/oxjs

in documentation use foo, not <code>foo</code>

This commit is contained in:
rolux 2012-06-02 13:06:44 +02:00
commit 73fa856900
16 changed files with 89 additions and 105 deletions

View file

@ -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