Skip to content
Prev Previous commit
Next Next commit
Changed argument name 'jQueryObject' to 'selection'
As per discussion on #jquery-content. Also changed type from 'Object'
to 'jQuery' where prose indicates a jQuery object.
  • Loading branch information
esx committed Jan 21, 2014
commit 41ce2612838d41a781e27324f04745b92dbbc0af
2 changes: 1 addition & 1 deletion entries/closest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</signature>
<signature>
<added>1.6</added>
<argument name="jQueryObject" type="jQuery">
<argument name="selection" type="jQuery">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain the purpose of this change? I'm not seeing any effect that it's having.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The purpose is to avoid confusion when reading the example by using a proper variable name (no spaces). There was a discussion about what that name should be (I think in IRC) and I believe we opted for selection, though I believe even within this PR there are inconsistencies.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like @esx added this commit after I last pulled in this branch. That's why I wasn't seeing the changes in my local environment. @esx could you make a pass of this and make sure that you're being consistent with "selection"?

Thanks.

<desc>A jQuery object to match elements against.</desc>
</argument>
</signature>
Expand Down
2 changes: 1 addition & 1 deletion entries/filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</signature>
<signature>
<added>1.4</added>
<argument name="jQueryObject" type="Object">
<argument name="selection" type="jQuery">
<desc>An existing jQuery object to match the current set of elements against.</desc>
</argument>
</signature>
Expand Down
2 changes: 1 addition & 1 deletion entries/find.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</signature>
<signature>
<added>1.6</added>
<argument name="jQuery" type="jQuery">
<argument name="selection" type="jQuery">
<desc>A jQuery object to match elements against.</desc>
</argument>
</signature>
Expand Down
2 changes: 1 addition & 1 deletion entries/is.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</signature>
<signature>
<added>1.6</added>
<argument name="jQueryObject" type="Object">
<argument name="selection" type="jQuery">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still displaying as "Type: Object" rather than "Type: jQuery" for me.

<desc>An existing jQuery object to match the current set of elements against.</desc>
</argument>
</signature>
Expand Down
2 changes: 1 addition & 1 deletion entries/jQuery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</signature>
<signature>
<added>1.0</added>
<argument name="jQueryObject" type="jQuery">
<argument name="selection" type="jQuery">
<desc>An existing jQuery object to clone.</desc>
</argument>
</signature>
Expand Down
2 changes: 1 addition & 1 deletion entries/not.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</signature>
<signature>
<added>1.4</added>
<argument name="jQueryObject" type="jQuery">
<argument name="selection" type="jQuery">
<desc>An existing jQuery object to match the current set of elements against.</desc>
</argument>
</signature>
Expand Down