~caneypuggies/reformedchurcheslocator/couchapp-backbone

« back to all changes in this revision

Viewing changes to _attachments/js/vendor/requirejs/tests/jquery/scripts/jquery.gamma.js

  • Committer: Tim Black
  • Date: 2013-09-16 22:50:16 UTC
  • Revision ID: tim@alwaysreformed.com-20130916225016-zk8jiba25z33ew7h
Versioned Bower vendor directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(function () {
 
2
    //Define the plugin.
 
3
    function plugin($) {
 
4
        $.fn.gamma = function() {
 
5
            return 'gamma';
 
6
        };
 
7
 
 
8
        $(function () {
 
9
            doh.is('gamma', $('body').gamma());
 
10
            readyFired();
 
11
        });
 
12
    }
 
13
 
 
14
    //Register the plugin.
 
15
    if (typeof define !== 'undefined' && define.amd) {
 
16
        define(['jquery'], plugin);
 
17
    } else if (typeof jQuery !== 'undefined') {
 
18
        plugin(jQuery);
 
19
    }
 
20
}());