Posted By

arpit on 05/11/09


Tagged

oop jquery


Versions (?)

JQuery creating a class


 / Published in: JavaScript
 

Stub for creating classes in JQuery

  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  

You need to login to post a comment.