Created
May 9, 2014 16:48
-
-
Save oscarotero/ebdffc8d7f398023b5dc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (factory) { | |
if (typeof define === 'function' && define.amd) { | |
// Existe AMD. | |
define(['jquery'], factory); | |
} else { | |
// Non existe, busca en global | |
factory(jQuery); | |
} | |
}(function ($) { | |
//Aqui o teu plugin | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment