jquery
$.fn.someFunc = myFunc;
function myFunc()
{
}
javascript
function myObj()
{
}
var obj= new myObj();
obj.prototype.someFunc=myFunc;
function myFunc()
{
}
( ), jquery fn - javascript. sumFunc, jquery,
$.fn.someFunc = myFunc;
$('someElement').someFunc();
and this line will call the taht function and do something with "someElement" (although I didn’t do anything), hope this is clear enough. Take a look at TJ Crowder's answer, this will give you some insight.
source
share