Object Literal Architecture Template


/ Published in: JavaScript
Save to your folder(s)

Template for a Object Literal Architecture in javascript, in this case jQuery


Copy this code and paste it in your HTML
  1. //Object Literal jQuery
  2.  
  3. var JS = {
  4.  
  5. onReady : function(){
  6. ...
  7. },
  8.  
  9. nextFunction : function(){
  10. ...
  11. }
  12. }
  13.  
  14. jQuery(document).ready(JS.onReady);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.