U4-9659 Javascript error when inserting an image into the rich text editor from the media picker

This commit is contained in:
Shannon
2017-03-22 18:26:11 +11:00
parent 3598acaddc
commit b1aea424e8

View File

@@ -108,8 +108,10 @@ angular.module("umbraco.directives")
$image.load(function(){
$timeout(function(){
setDimensions();
scope.loaded = true;
scope.onImageLoaded();
scope.loaded = true;
if (scope.onImageLoaded) {
scope.onImageLoaded();
}
});
});