This fixes #10. By convention, all $.fn.* methods return the original jQuery object to allow chaining. I fixed this, and rewritten some minor portions of the code using jQuery’s chaining power.
I added a few comments on the diff, with more explanations.
This fixes #10. By convention, all
$.fn.*
methods return the original jQuery object to allow chaining. I fixed this, and rewritten some minor portions of the code using jQuery’s chaining power.I added a few comments on the diff, with more explanations.