Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove setTimeout call, not really needed
  • Loading branch information
gashcrumb committed May 8, 2013
1 parent 7eb6528 commit da1c8f7
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -26,10 +26,8 @@ module UI {

$scope.$watch('show', function() {
if ($scope.show) {
setTimeout(function() {
$scope.body = $('.modal-body');
$scope.body.html($compile($scope.clone.html())($scope.$parent));
}, 50);
$scope.body = $element.find('.modal-body');
$scope.body.html($compile($scope.clone.html())($scope.$parent));
}
});

Expand Down

0 comments on commit da1c8f7

Please sign in to comment.