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
|
|
@ -296,7 +296,7 @@ Ox.Element = function(options, self) {
|
|||
callback <f> Callback function
|
||||
data <o> event data (key/value pairs)
|
||||
event <s> Event name
|
||||
Event names can be namespaced, like <code>'click.foo'</code>
|
||||
Event names can be namespaced, like `'click.foo'`
|
||||
@*/
|
||||
that.bindEvent = function() {
|
||||
if (Ox.typeOf(arguments[0]) == 'function') {
|
||||
|
|
@ -316,7 +316,7 @@ Ox.Element = function(options, self) {
|
|||
callback <f> Callback function
|
||||
data <o> event data (key/value pairs)
|
||||
event <s> Event name
|
||||
Event names can be namespaced, like <code>'click.foo'</code>
|
||||
Event names can be namespaced, like `'click.foo'`
|
||||
@*/
|
||||
that.bindEventOnce = function() {
|
||||
Ox.forEach(Ox.makeObject(arguments), function(callback, event) {
|
||||
|
|
@ -478,8 +478,7 @@ Ox.Element = function(options, self) {
|
|||
/*@
|
||||
unbindEvent <function> Unbinds all callbacks from an event
|
||||
To unbind a specific handler, use namespaced events, like
|
||||
<code>bindEvent('click.foo', callback)</code>, and then
|
||||
<code>unbindEvent('click.foo')</code>.
|
||||
`bindEvent('click.foo', callback)`, and then `unbindEvent('click.foo')`.
|
||||
() -> <object> This element
|
||||
Unbinds all callbacks from all events
|
||||
(callback) -> <o> This element
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue