enable.js 412 B

123456789101112131415161718192021
  1. $(function () {
  2. 'use strict';
  3. var $image = $(window.createCropperImage());
  4. $image.cropper({
  5. built: function () {
  6. var cropper = $image.data('cropper');
  7. QUnit.test('methods.enable', function (assert) {
  8. $image.cropper('disable').cropper('enable');
  9. assert.ok(!cropper.disabled);
  10. assert.ok(!cropper.$cropper.hasClass('cropper-disabled'));
  11. });
  12. }
  13. });
  14. });