I just started using jQuery boilerplate and i am unsure about the use of local variables vs object properties. When a function on the prototype (Plugin.prototype
) has makes use of values that do not need to be shared with rest of the functions should i use var
? Also is it OK to assign object properties in the functions themselves or should all values be store in the constructor?
Thanks!