Skip to content

Commit

Permalink
Fix manual injection
Browse files Browse the repository at this point in the history
  • Loading branch information
Pentiado committed Jul 31, 2017
1 parent 86ea66d commit 06e6196
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion release/angular-lazy-img.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ angular.module('angularLazyImg').factory('lazyImgHelpers', [

angular.module('angularLazyImg')
.directive('lazyImg', [
'$rootScope', 'LazyImgMagic', function ($rootScope, $log, LazyImgMagic) {
'$rootScope', 'LazyImgMagic', '$log', function ($rootScope, $log, LazyImgMagic) {

This comment has been minimized.

Copy link
@gggritso

gggritso Aug 1, 2017

I think this should be '$rootScope', '$log', 'LazyImgMagic', function ($rootScope, $log, LazyImgMagic) {
instead of '$rootScope', 'LazyImgMagic', '$log', function ($rootScope, $log, LazyImgMagic) {

This comment has been minimized.

Copy link
@wagnerlduarte

wagnerlduarte Aug 1, 2017

Yeah. I think this too, because when I publish my application happen an error saying that $log don't contains a constructor.

'use strict';

function link(scope, element, attributes) {
Expand Down
2 changes: 1 addition & 1 deletion release/angular-lazy-img.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/angular-lazy-img-directive.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
angular.module('angularLazyImg')
.directive('lazyImg', [
'$rootScope', 'LazyImgMagic', function ($rootScope, $log, LazyImgMagic) {
'$rootScope', 'LazyImgMagic', '$log', function ($rootScope, $log, LazyImgMagic) {

This comment has been minimized.

Copy link
@gggritso

gggritso Aug 1, 2017

Same injection order thing here :)

'use strict';

function link(scope, element, attributes) {
Expand Down

0 comments on commit 06e6196

Please sign in to comment.