Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Update form_collections.rst#3157
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
The assignment to collectionHolder must be done within jQuery ready function, or else it will be null.BTW, the variables in JavaScript do not need the $, which is confusing since in jQuery $ has a special meaning.
wouterj commentedNov 5, 2013
I always use $ to indicate it's a jQuery object, but if it's confusing I agree with removing them |
wouterj commentedNov 5, 2013
so 👍 (could you please include thePR template into your PR description?) |
attardi commentedNov 6, 2013
Actually the variable collectionHolder should be assigned within the jQuery ready function, but declared outside, since it is used in other functions as well. |
weaverryan commentedNov 6, 2013
Hi Giuseppe! It's subjective, but I don't agree with removing the Cheers! |
bicpi commentedNov 6, 2013
Using |
ggam commentedNov 6, 2013
In case we keep the |
weaverryan commentedNov 9, 2013
That sounds like a good suggestion to me.@attardi can you make the change to put the $ back and add a note about it? Thanks! |
lyrixx commentedNov 9, 2013
I used to prefix my jQuery object with |
attardi commentedNov 9, 2013
On 11/9/2013 18:59, Ryan Weaver wrote:
-- Beppe |
wouterj commentedNov 9, 2013
@attardi you should go to your repo, select the patch-1 branch and do the updates then. |
The variable collectionHolder must be assigned inside the jQuery ready function, but must be declared outside, since it is used also in other functions.I have put back the '$' in front of names of variables having jQuery objects as values and for uniformity, also added it to collectionHolder.
attardi commentedNov 9, 2013
On 11/9/2013 19:47, Wouter J wrote:
-- Beppe |
weaverryan commentedNov 12, 2013
Thanks everyone! Small tweak at sha:ae5a6d2 Cheers! |
The assignment to collectionHolder must be done within jQuery ready function, or else it will be null.
BTW, the variables in JavaScript do not need the $, which is confusing since in jQuery $ has a special meaning.