JQuery creating a class


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

Stub for creating classes in JQuery


Copy this code and paste it in your HTML
  1. var controller = function(){
  2.  
  3. }
  4.  
  5. $.extend(VODController.prototype, {
  6. var instanceVar = "",
  7. var instanceVar2 = "",
  8. instanceFunction:function(){
  9.  
  10. },
  11. instanceFunction2:function(){
  12.  
  13. }
  14. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.