Skip to content

Commit 66465e9

Browse files
committed
fixing typo in parameter of position callback
1 parent d4e8af4 commit 66465e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ <h3 id="options">options (at registration)</h3>
154154
<p>The first argument ist the <em>$menu</em> jQuery object</p>
155155
<p>The second and third arguments are <em>x</em> and <em>y</em> coordinates provided by the showing event</p>
156156
<p><em>x</em> and <em>y</em> may either be integers denoting the offset from the top left corner, undefined, or the string "maintain". If the string "maintain" is provided, the current position of the <em>$menu</em> must be used. If the coordinates are undefined, appropriate coordinates must be determined. An example of how this can be achieved is provided with <a href="#options-determinePosition">determinePosition</a>.</p>
157-
<p>Example: <code>{position: function($menu, x, y){$menu.css({top: 123, left: 123});}}</code></p>
157+
<p>Example: <code>{position: function(opt, x, y){opt.$menu.css({top: 123, left: 123});}}</code></p>
158158
</dd>
159159

160160
<dt id="options-determinePosition"><em>(function)</em> determinePosition</dt>

0 commit comments

Comments
 (0)