/ Published in: JavaScript
Class structure
Expand |
Embed | Plain Text
var ProjectName = {}; /* Does stuff */ ProjectName.stuff = { variable : null, init: function() { this.setBehavior(); }, setBehavior: function() { // do something } }; $(document).ready(function() { ProjectName.stuff.init(); });
You need to login to post a comment.
