Skip to content
This repository was archived by the owner on Aug 1, 2020. It is now read-only.

Commit 617d9bd

Browse files
committed
build: release 4.1.0
1 parent fbdecf6 commit 617d9bd

14 files changed

+11756
-13620
lines changed

CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# Changelog
22

3+
## 4.1.0 (Oct 12, 2019)
4+
5+
- Upgrade the built-in Cropper.js to v1.5.6.
6+
37
## 4.0.0 (Apr 1, 2018)
48

5-
- Upgrade Cropper.js to 1.3.4.
9+
- Upgrade the built-in Cropper.js to v1.3.4.
610

711
## 4.0.0-beta (Mar 3, 2018)
812

9-
- Upgrade Cropper.js to 1.3.2.
13+
- Upgrade the built-in Cropper.js to v1.3.2.
1014

1115
## 4.0.0-alpha (Mar 1, 2018)
1216

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cropper
22

3-
[![Build Status](https://img.shields.io/travis/fengyuanchen/cropper.svg)](https://travis-ci.org/fengyuanchen/cropper) [![Downloads](https://img.shields.io/npm/dm/cropper.svg)](https://www.npmjs.com/package/cropper) [![Version](https://img.shields.io/npm/v/cropper.svg)](https://www.npmjs.com/package/cropper)
3+
[![Build Status](https://img.shields.io/travis/fengyuanchen/cropper.svg)](https://travis-ci.org/fengyuanchen/cropper) [![Downloads](https://img.shields.io/npm/dm/cropper.svg)](https://www.npmjs.com/package/cropper) [![Version](https://img.shields.io/npm/v/cropper.svg)](https://www.npmjs.com/package/cropper) [![Dependencies](https://img.shields.io/david/fengyuanchen/cropper.svg)](https://www.npmjs.com/package/cropper)
44

55
> A simple jQuery image cropping plugin. As of v4.0.0, the core code of Cropper is replaced with [Cropper.js](https://github.com/fengyuanchen/cropperjs).
66
@@ -79,23 +79,25 @@ var cropper = $image.data('cropper');
7979
See the available [options](https://github.com/fengyuanchen/cropperjs#options) of Cropper.js.
8080

8181
```js
82-
$().cropper(options);
82+
$('img').cropper(options);
8383
```
8484

8585
## Methods
8686

8787
See the available [methods](https://github.com/fengyuanchen/cropperjs#methods) of Cropper.js.
8888

8989
```js
90-
$().cropper('method', argument1, , argument2, ..., argumentN);
90+
$('img').once('ready', function () {
91+
$(this).cropper('method', argument1, , argument2, ..., argumentN);
92+
});
9193
```
9294

9395
## Events
9496

9597
See the available [events](https://github.com/fengyuanchen/cropperjs#events) of Cropper.js.
9698

9799
```js
98-
$().on('event', handler);
100+
$('img').on('event', handler);
99101
```
100102

101103
## No conflict
@@ -107,7 +109,7 @@ If you have to use other plugin with the same namespace, just call the `$.fn.cro
107109
<script src="cropper.js"></script>
108110
<script>
109111
$.fn.cropper.noConflict();
110-
// Code that uses other plugin's "$().cropper" can follow here.
112+
// Code that uses other plugin's "$('img').cropper" can follow here.
111113
</script>
112114
```
113115

0 commit comments

Comments
 (0)