Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Commit

Permalink
problem when cropping image more than once fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
0000marcell committed Mar 22, 2018
1 parent be1605a commit b1c6533
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion addon/components/image-cropper.js
Expand Up @@ -40,7 +40,7 @@ export default Ember.Component.extend({
zoomin: null,
zoomout: null,
//initialize cropper on did insert element
didRender(){
didInsertElement(){
let properties = this.getProperties('cropperContainer',
'aspectRatio', 'crop', 'previewClass', 'viewMode',
'dragMode', 'responsive', 'center', 'checkCrossOrigin',
Expand Down
3 changes: 0 additions & 3 deletions ember-cli-build.js
Expand Up @@ -14,8 +14,5 @@ module.exports = function(defaults) {
This build file does *not* influence how the addon or the app using it
behave. You most likely want to be modifying `./index.js` or app's build file
*/
app.import('vendor/cropper.min.js');
app.import('vendor/cropper.min.css');
app.import('vendor/shims/cropperjs.js');
return app.toTree();
};

0 comments on commit b1c6533

Please sign in to comment.