@lemonadejs/cropper 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cropper.js +13 -4
  2. package/package.json +1 -1
package/dist/cropper.js CHANGED
@@ -16,12 +16,21 @@
16
16
 
17
17
  'use strict';
18
18
 
19
- // Load jSuites
19
+ // Load lemonadejs
20
+ if (typeof(lemonade) == 'undefined') {
21
+ if (typeof(require) === 'function') {
22
+ var lemonade = require('lemonadejs');
23
+ } else if (window.lemonade) {
24
+ var lemonade = window.lemonade;
25
+ }
26
+ }
27
+
28
+ // Load jsuites
20
29
  if (typeof(jSuites) == 'undefined') {
21
- if (window.jSuites) {
22
- var jSuites = window.jSuites;
23
- } else if (typeof(require) === 'function') {
30
+ if (typeof(require) === 'function') {
24
31
  var jSuites = require('jsuites');
32
+ } else if (window.jSuites) {
33
+ var jSuites = window.jSuites;
25
34
  }
26
35
  }
27
36
 
package/package.json CHANGED
@@ -19,5 +19,5 @@
19
19
  "@jsuites/cropper": "^1.5.1"
20
20
  },
21
21
  "main": "dist/cropper.js",
22
- "version": "1.4.0"
22
+ "version": "1.4.1"
23
23
  }