3.0 source code
This commit is contained in:
20
OfficeWeb/vendor/requirejs/tests/jquery/scripts/jquery.gamma.js
vendored
Normal file
20
OfficeWeb/vendor/requirejs/tests/jquery/scripts/jquery.gamma.js
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
(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);
|
||||
}
|
||||
}());
|
||||
Reference in New Issue
Block a user