mar10/fancytree

View on GitHub
lib/amd-intro-require-native-ui.js

Summary

Maintainability
A
0 mins
Test Coverage
(function( factory ) {
    if ( typeof define === "function" && define.amd ) {
        // AMD. Register as an anonymous module.
        define( [
            "jquery",
            "jquery-ui/ui/widgets/mouse",
            "jquery-ui/ui/widgets/draggable",
            "jquery-ui/ui/widgets/droppable",
            "jquery-ui/ui/effects/effect-blind",
            "jquery-ui/ui/data",
            "jquery-ui/ui/effect",
            "jquery-ui/ui/focusable",
            "jquery-ui/ui/keycode",
            "jquery-ui/ui/position",
            "jquery-ui/ui/scroll-parent",
            "jquery-ui/ui/tabbable",
            "jquery-ui/ui/unique-id",
            "jquery-ui/ui/widget"
        ], factory );
    } else if ( typeof module === "object" && module.exports ) {
        // Node/CommonJS
        module.exports = factory(require("jquery"));
    } else {
        // Browser globals
        factory( jQuery );
    }
}(function( $ ) {