| 123456789101112131415161718192021 |
- $(function () {
- 'use strict';
- var $image = $(window.createCropperImage());
- $image.cropper({
- built: function () {
- var cropper = $image.data('cropper');
- QUnit.test('methods.enable', function (assert) {
- $image.cropper('disable').cropper('enable');
- assert.ok(!cropper.disabled);
- assert.ok(!cropper.$cropper.hasClass('cropper-disabled'));
- });
- }
- });
- });
|