mar10/fancytree

View on GitHub
lib/amd-intro-require-jquery.js

Summary

Maintainability
A
0 mins
Test Coverage
(function( factory ) {
    if ( typeof define === "function" && define.amd ) {
        // AMD. Register as an anonymous module.
        define( [ "jquery" ], factory );
    } else if ( typeof module === "object" && module.exports ) {
        // Node/CommonJS
        module.exports = factory(require("jquery"));
    } else {
        // Browser globals
        factory( jQuery );
    }
}(function( $ ) {