it is not a jQuery object, $(this.proxy(func));
is registering the function passed to the load method as a dom ready handler so that even if the load
method is called before dom is ready is callback function is delayed till the dom is ready. If the dom is already in ready state then the callback is executed without any delay.
mod.fn.load = function (func) {
console.log('inside load')
$(this.proxy(func));
console.log('exit load')
};
Demo: Fiddle
It is the same as
mod.fn.load = function (func) {
var self = this;
//dom ready callback
$(function(){
func.call(self);
});
};
Demo: Fiddle
If you are not doing so then there is a possibility that the script will fail like
mod.fn.load = function (func) {
var self = this;
console.log('inside load');
func.call(self);
console.log('exit load')
};
Demo: Fiddle