aboutsummaryrefslogtreecommitdiff
path: root/js/button.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/button.js')
-rw-r--r--js/button.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/js/button.js b/js/button.js
index aa7145072..cab7d8c3d 100644
--- a/js/button.js
+++ b/js/button.js
@@ -7,7 +7,11 @@
* ======================================================================== */
-+function ($) {
+(function (o_o) {
+ typeof define === 'function' && define.amd ? define(['jquery'], o_o) :
+ typeof exports === 'object' ? o_o(require('jquery')) : o_o(this.jQuery)
+})(function ($) {
+
'use strict';
// BUTTON PUBLIC CLASS DEFINITION
@@ -107,4 +111,4 @@
e.preventDefault()
})
-}(jQuery);
+});