summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-03-03 16:54:20 -0600
committerMike Greiling <mike@pixelcog.com>2017-03-03 16:54:20 -0600
commit982dd5040b3bb2b74534ecddf6fc6c3668ae08c0 (patch)
tree957af8635ab6dd759444c8c88804ad134a46184d /app/assets/javascripts
parented3e3317de6e386364c1949b939c087b7aed6258 (diff)
downloadgitlab-ce-982dd5040b3bb2b74534ecddf6fc6c3668ae08c0.tar.gz
merge cropper library into profile_bundlecommons-chunk-plugin
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r--app/assets/javascripts/lib/cropper.js7
-rw-r--r--app/assets/javascripts/profile/gl_crop.js.es62
2 files changed, 2 insertions, 7 deletions
diff --git a/app/assets/javascripts/lib/cropper.js b/app/assets/javascripts/lib/cropper.js
deleted file mode 100644
index 7862c6797c3..00000000000
--- a/app/assets/javascripts/lib/cropper.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/* eslint-disable func-names, space-before-function-paren */
-
-/*= require cropper */
-
-(function() {
-
-}).call(window);
diff --git a/app/assets/javascripts/profile/gl_crop.js.es6 b/app/assets/javascripts/profile/gl_crop.js.es6
index 192b1192d07..cf1566eeb87 100644
--- a/app/assets/javascripts/profile/gl_crop.js.es6
+++ b/app/assets/javascripts/profile/gl_crop.js.es6
@@ -1,5 +1,7 @@
/* eslint-disable no-useless-escape, max-len, quotes, no-var, no-underscore-dangle, func-names, space-before-function-paren, no-unused-vars, no-return-assign, object-shorthand, one-var, one-var-declaration-per-line, comma-dangle, consistent-return, class-methods-use-this, new-parens */
+import 'vendor/cropper';
+
((global) => {
// Matches everything but the file name
const FILENAMEREGEX = /^.*[\\\/]/;