diff --git a/bower.json b/bower.json index e2d822f..b6e7cb4 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "nsPopover", - "version": "0.6.5", + "version": "0.6.6", "homepage": "https://github.com/nohros/nsPopover", "description": "Popover for angularjs library", "authors": [ diff --git a/example/nsPopover.js b/example/nsPopover.js index 08e8232..1a4e4ac 100644 --- a/example/nsPopover.js +++ b/example/nsPopover.js @@ -202,15 +202,13 @@ $popover.addClass(options.theme); } - // Add classes that identifies the pacement and alignment of the popver + // Add classes that identifies the placement and alignment of the popver // which allows the customization of the popover based on its position. $popover .addClass('ns-popover-' + placement_ + '-placement') .addClass('ns-popover-' + align_ + '-align'); - $timeout(function() { - $compile($popover)(scope); - }); + $compile($popover)(scope); scope.$on('$destroy', function() { $popover.remove(); diff --git a/src/nsPopover.js b/src/nsPopover.js index 08e8232..1a4e4ac 100644 --- a/src/nsPopover.js +++ b/src/nsPopover.js @@ -202,15 +202,13 @@ $popover.addClass(options.theme); } - // Add classes that identifies the pacement and alignment of the popver + // Add classes that identifies the placement and alignment of the popver // which allows the customization of the popover based on its position. $popover .addClass('ns-popover-' + placement_ + '-placement') .addClass('ns-popover-' + align_ + '-align'); - $timeout(function() { - $compile($popover)(scope); - }); + $compile($popover)(scope); scope.$on('$destroy', function() { $popover.remove();