Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 331a332,336
  2. >        * Whether the user has initiated crop on this instance
  3. >        */    
  4. >       this.isCropped = false;
  5. >       /**
  6. >        * @var boolean
  7. 1135c1140,1142
  8. <
  9. ---
  10. >      
  11. >       this.isCropped = true;
  12. >      
  13. 1246,1252c1253,1261
  14. <       this.options.onEndCrop(
  15. <           this.areaCoords,
  16. <           {
  17. <               width: this.calcW(),
  18. <               height: this.calcH()
  19. <           }
  20. <       );
  21. ---
  22. >       if(this.isCropped) {       
  23. >           this.options.onEndCrop(
  24. >               this.areaCoords,
  25. >               {
  26. >                   width: this.calcW(),
  27. >                   height: this.calcH()
  28. >               }
  29. >           );
  30. >       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement