Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
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.
I always use $ to indicate it's a jQuery object, but if it's confusing I agree with removing them |
so 👍 (could you please include thePR template into your PR description?) |
Actually the variable collectionHolder should be assigned within the jQuery ready function, but declared outside, since it is used in other functions as well. |
Hi Giuseppe! It's subjective, but I don't agree with removing the Cheers! |
Using |
ggam commentedNov 6, 2013
In case we keep the |
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! |
I used to prefix my jQuery object with |
On 11/9/2013 18:59, Ryan Weaver wrote:
-- Beppe |
@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.
On 11/9/2013 19:47, Wouter J wrote:
-- Beppe |
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.