Skip to content

Commit

Permalink
Merge pull request #127 from BuildFire/fix-show-code-on-init
Browse files Browse the repository at this point in the history
Fix show code on init
  • Loading branch information
charkhaw authored Sep 28, 2023
2 parents 593b606 + e8c4c41 commit 2607944
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions widget/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@

$(elem).append(parTpl);
views++;

if (!scope.$$phase) scope.$apply();
if (!$rootScope.$$phase) $rootScope.$apply();
} else if (type === 'POP') {

var _elToRemove = $(elem).find('#' + view.template),
Expand Down Expand Up @@ -219,7 +220,7 @@
restrict: 'A',
link: function (scope, element, attrs) {
element.attr("src", "../../../styles/media/holder-" + attrs.loadImage + ".gif");

var _img = attrs.finalSrc;

let croppedImage = buildfire.imageLib.cropImage(
Expand Down Expand Up @@ -328,4 +329,4 @@
});
}])

})(window.angular, window.buildfire, window);
})(window.angular, window.buildfire, window);

0 comments on commit 2607944

Please sign in to comment.