Browse files

options.object contents are passed to event.data

  • Loading branch information...
1 parent 5882e2a commit e91d7927ca4949c170af754f64a0edc11ef921a6 @dtex dtex committed Aug 30, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 docs.html
View
2 docs.html
@@ -252,6 +252,8 @@ <h3 id="items">options.items</h3>
<p>Events to register on &lt;input&gt; elements</p>
<p>Only used with <a href="#items-type">types</a> <em>"text"</em>, <em>"textarea"</em>, <em>"radio"</em>, <em>"checkbox"</em> and <em>"select"</em>.</p>
<p>Example: { command1: {name: "Foobar", type: "text", events: {keyup: function(e){alert(e.keyCode);}} }}</p>
+ <p>The contents of the options object are passed to jQuery event.data.</p>
+ <p>Example: { command1: {name: "Foobar", type: "text", events: {keyup: function(e){alert(e.data.$trigger.attr("id"));}} }}</p>
</dd>
<dt id="items-value"><em>(string)</em> value</dt>

0 comments on commit e91d792

Please sign in to comment.