marcosesperon / Messi

A simple message plugin for jQuery
http://marcosesperon.es/apps/messi/
146 stars 135 forks source link

Update messi.js #27

Open EpicJhon opened 11 years ago

EpicJhon commented 11 years ago

The plugin Messi has a bad integration with JQuery, this makes it obligatory to "< script src="messi.js"> " at the end of body, to fix this, change this:

(function($) { function Messi(e,t){ ... } ... // End of file $.Messi = Messi; })(jQuery);

This solves the problem (you can put the script anywhere in the code) and creates a healthier integration with JQuery, Example of the new call:

new $. Messi (message, options);