web-apps/vendor/requirejs/tests/jquery/scripts/jquery.gamma.js
Maxim Kadushkin 741b10515d webapps added
2016-03-10 21:48:53 -03:00

21 lines
458 B
JavaScript

(function () {
//Define the plugin.
function plugin($) {
$.fn.gamma = function() {
return 'gamma';
};
$(function () {
doh.is('gamma', $('body').gamma());
readyFired();
});
}
//Register the plugin.
if (typeof define !== 'undefined' && define.amd) {
define(['jquery'], plugin);
} else if (typeof jQuery !== 'undefined') {
plugin(jQuery);
}
}());