Skip to content

Commit

Permalink
added log warn message
Browse files Browse the repository at this point in the history
  • Loading branch information
CrackerakiUA committed Oct 20, 2016
1 parent 2430666 commit 4884499
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
6 changes: 3 additions & 3 deletions compile/minified/ng-img-crop.js

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions compile/unminified/ng-img-crop.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* ngImgCropExtended v0.6.1
* ngImgCropExtended v0.6.2
* http://crackerakiua.github.io/ngImgCropFullExtended/
*
* Copyright (c) 2016 Alex Kaul
* License: MIT
*
* Generated at Monday, September 19th, 2016, 9:44:50 AM
* Generated at Thursday, October 20th, 2016, 3:43:09 PM
*/
(function() {
var crop = angular.module('ngImgCrop', []);
Expand Down Expand Up @@ -3127,6 +3127,8 @@ crop.directive('imgCrop', ['$timeout', 'cropHost', 'cropPubSub', function ($time
}],
link: function (scope, element) {

console.warn('This plugin is deprecated in the name of ui-cropper. You can find it under https://github.com/CrackerakiUA/ui-cropper');

if (scope.liveView && typeof scope.liveView.block === 'boolean') {
scope.liveView.render = function (callback) {
updateResultImage(scope, true, callback);
Expand Down Expand Up @@ -3306,7 +3308,12 @@ crop.directive('imgCrop', ['$timeout', 'cropHost', 'cropPubSub', function ($time
if (newVal) {
displayLoading();
}
$timeout(function () {
// cancel timeout if necessary
if (!!scope.timeout) {
$timeout.cancel(scope.timeout);
}
scope.timeout = $timeout(function () {
scope.timeout = null;
cropHost.setInitMax(scope.initMaxArea);
cropHost.setNewImageSource(scope.image);
}, 100);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.6.1",
"version": "0.6.2",
"author": {
"name": "Alex Kaul",
"email": "alexkaul@googlemail.com"
Expand Down
2 changes: 2 additions & 0 deletions source/js/ng-img-crop.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ crop.directive('imgCrop', ['$timeout', 'cropHost', 'cropPubSub', function ($time
}],
link: function (scope, element) {

console.warn('This plugin is deprecated in the name of ui-cropper. You can find it under https://github.com/CrackerakiUA/ui-cropper');

if (scope.liveView && typeof scope.liveView.block === 'boolean') {
scope.liveView.render = function (callback) {
updateResultImage(scope, true, callback);
Expand Down

0 comments on commit 4884499

Please sign in to comment.