- Joined
- May 15, 2013
- Messages
- 2,248
- Reaction score
- 2,158
- First Language
- English
- Primarily Uses
- N/A
@ArkDG: If you look at previous examples there are far better ways to do it. Like:
Code:
TDD_Example = {}; // Makes an empty object(function($) { // All your plugin code goes into this anonymous function $.myPublicFunction = function() {}; // Binds myPublicFunction to TDD_Example, so it can be accessed with TDD_Example.myPublicFunction()})(TDD_Example); // Here we pass in TDD_Example as the value $ will get inside the enclosure.
Last edited by a moderator:
