Skip to content
This repository was archived by the owner on Aug 14, 2021. It is now read-only.

AMD support #72

Merged
merged 1 commit into from
Sep 6, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions jquery.ui-contextmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@
*
* Copyright (c) 2014, Martin Wendt (http://wwWendt.de). Licensed MIT.
*/
;(function($, window, document, undefined) {

(function( factory ) {
"use strict";
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define([ "jquery" ], factory );
} else {
// Browser globals
factory( jQuery );
}
}(function( $ ) {
"use strict";
var supportSelectstart = "onselectstart" in document.createElement("div"),
match, uiVersion;
Expand Down Expand Up @@ -417,4 +427,4 @@
});
}

}(jQuery, window, document));
}));