Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

jQuery.widget: Document that widget event names are lowercased #191

Closed
wants to merge 1 commit into from

2 participants

@tjvantoll
Collaborator

Fixes gh-182

@gnarf
Owner

Should we use an even example that is camelCased, do we have any?

@tjvantoll
Collaborator

There are only a couple - e.g. sortable's beforeStop event.

Since progressbar is the widget used to document the widget factory, and it has no camel cased events, I worry that an example would interrupt the flow of this too much.

@tjvantoll
Collaborator

I'm going to land this as is for now. If someone can come up with a reasonable way of adding an example into the docs without messing with the flow then we can add that later.

@tjvantoll tjvantoll closed this in 0f8f481
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  entries/jQuery.widget.xml
View
2  entries/jQuery.widget.xml
@@ -85,7 +85,7 @@
<h3>Events</h3>
- <p>All widgets have events associated with their various behaviors to notify you when the state is changing. For most widgets, when the events are triggered, the names are prefixed with the widget name. For example, we can bind to progressbar's <code>change</code> event which is triggered whenever the value changes.</p>
+ <p>All widgets have events associated with their various behaviors to notify you when the state is changing. For most widgets, when the events are triggered, the names are prefixed with the widget name and lowercased. For example, we can bind to progressbar's <code>change</code> event which is triggered whenever the value changes.</p>
<pre><code>
$( "#elem" ).bind( "progressbarchange", function() {
Something went wrong with that request. Please try again.