Merge pull request #1925 from SaDa1337/dev-v7

fixed console error on media picker
This commit is contained in:
Shannon Deminick
2017-05-08 17:11:28 +10:00
committed by GitHub

View File

@@ -105,12 +105,14 @@ angular.module("umbraco.directives")
});
//// INIT /////
$image.load(function(){
$timeout(function(){
setDimensions();
scope.loaded = true;
scope.onImageLoaded();
});
$image.load(function() {
$timeout(function() {
setDimensions();
scope.loaded = true;
if (angular.isFunction(scope.onImageLoaded)) {
scope.onImageLoaded();
}
});
});
$(window).on('resize.umbImageGravity', function(){