Skip to content

Commit

Permalink
fix a non explicit DI
Browse files Browse the repository at this point in the history
  • Loading branch information
theshortcut committed Mar 25, 2015
1 parent 94b961e commit d021d7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions compile/unminified/ng-img-crop.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* ngImgCrop v0.2.0
* https://github.com/alexk111/ngImgCrop
*
* Copyright (c) 2014 Alex Kaul
* Copyright (c) 2015 Alex Kaul
* License: MIT
*
* Generated at Wednesday, August 13th, 2014, 10:55:49 AM
* Generated at Wednesday, March 25th, 2015, 12:41:18 PM
*/
(function() {
'use strict';
Expand Down Expand Up @@ -1119,9 +1119,9 @@ crop.directive('imgCrop', ['$timeout', 'cropHost', 'cropPubSub', function($timeo
onLoadError: '&'
},
template: '<canvas></canvas>',
controller: function($scope/*, $attrs, $element*/) {
controller: ['$scope', function($scope/*, $attrs, $element*/) {
$scope.events = new CropPubSub();
},
}],
link: function(scope, element/*, attrs*/) {
// Init Events Manager
var events = scope.events;
Expand Down
4 changes: 2 additions & 2 deletions source/js/ng-img-crop.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ crop.directive('imgCrop', ['$timeout', 'cropHost', 'cropPubSub', function($timeo
onLoadError: '&'
},
template: '<canvas></canvas>',
controller: function($scope/*, $attrs, $element*/) {
controller: ['$scope', function($scope/*, $attrs, $element*/) {
$scope.events = new CropPubSub();
},
}],
link: function(scope, element/*, attrs*/) {
// Init Events Manager
var events = scope.events;
Expand Down

0 comments on commit d021d7b

Please sign in to comment.