fengyuanchen/cropper — pull request #9 by ext (2014-04-25 13:09:30+00:00)
Title: Use width and height directly if no aspect ratio is passed.

Currently setData won't work as expected (and documented) as aspect ratio will always be used, e.g. calling setData with `{"x1":0,"y1":0,"width":1500,"height":100}` even with the aspectRatio option unset or set to 'auto' will cause the height to be recalculated, thus the crop zone will be larger than specified.

This patch fixes this by only recalculating if aspectRatio was given as an option. If no aspect ratio is set the width and height will be used as-is.