1 (function ( root, doc, factory ) {
2 if ( typeof define === "function" && define.amd ) {
3 // AMD. Register as an anonymous module.
4 define( [ "jquery" ], function ( $ ) {
5 factory( $, root, doc );
10 factory( root.jQuery, root, doc );
12 }( this, document, function ( $, window, document, undefined ) {