-
Notifications
You must be signed in to change notification settings - Fork 75
Document $.widget.bridge() - Fixes #160 #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The example I use is a bit silly, but I couldn't come up with anything better that also does something. The working example is here: http://jsbin.com/aGUvoXE/1/edit |
<argument name="name" type="String"> | ||
<desc>The name of the plugin to create.</desc> | ||
</argument> | ||
<argument name="prototype" type="PlainObject"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually a constructor, not a prototype.
Should we make |
<li><code>options</code>: an object of configuration options</li> | ||
<li><code>element</code>: the DOM element this instance was created on</li> | ||
</ul> | ||
<p>You can then hook this object up as a jQuery plugin using the bridge and use it on any jQuery object:</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should jQuery be in <code>
blocks here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only use <code>
around jQuery when referring to it as the function.
Updated |
<argument name="name" type="String"> | ||
<desc>The name of the plugin to create.</desc> | ||
</argument> | ||
<argument name="constructor" type="PlainObject"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type is function.
👍 |
Updated again. |
No description provided.