Is that a correct way to create class utilizing jQuery?

var myClass = null;

$(document).ready(function(){
        function MyClass(){
                this.imagesHolder = null;
        }

        MyClass.prototype.init = function (){
                this.imagesHolder = jQuery("#imgs");
        }

      myClass = new MyClass();
});

Reply via email to