Why build Javascript functions as JQuery plugins?
- by Mohammad
I've seen alot of JQuery implementations of existent JavaScript functions that merely wrap the JavaScript code in a JQuery wrapper and don't actually rely on any of JQuery's base for their operation.
What are the benefits of using Javascript as a JQuery plugin?
If there are none is there a speed loss to use a JQuery plugin that could have easily been implemented outside the wrapper just as well?
Many thanks in advance (just trying to learn something here).