Skip to content

Comments

Update messi.js#27

Open
EpicJhon wants to merge 1 commit intomarcosesperon:masterfrom
EpicJhon:patch-1
Open

Update messi.js#27
EpicJhon wants to merge 1 commit intomarcosesperon:masterfrom
EpicJhon:patch-1

Conversation

@EpicJhon
Copy link

The plugin Messi has a bad integration with JQuery, this makes it obligatory to "< script src="messi.js"> </script>" 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);

The plugin Messi has a bad integration with JQuery, this makes it obligatory to "<script src="messi.js"> </ script>" 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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant