I am developing a plugin for jquery and am having a problem to execute methods on it:
$(".data").bindFlexigrid("test")
In my plugin I have:
Plugin.prototype.test = function() {
return "return this!!";
};
Using the debugging tool of Chrome I found that my method is executed normally

The result is:

As you can see the result is not displayed
The full plugin code in: https://gist.github.com/1725981
The method is in line 141, but the problem with all methods
By passing
"test"you will hit thisif.return this.eachwill returnthiswhich is the jquery object.returnwithin theeachhas a different meaning.From the docs: