From e079817b83005d16a4acb91ec2b893e503e2a597 Mon Sep 17 00:00:00 2001 From: Neylor Ohmaly Date: Wed, 5 Feb 2014 20:41:30 -0200 Subject: Fix a bug that causes the popover to not recognize the left|* and right|* placements --- src/nsPopover.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nsPopover.js b/src/nsPopover.js index d391fac..2674f47 100644 --- a/src/nsPopover.js +++ b/src/nsPopover.js @@ -57,8 +57,8 @@ throw new Error('"' + options.placement + '" is not a valid placement or has a invalid combination of placements.'); } - placement_ = match[3] || match[1]; - align_ = match[4] || match[2] || 'center'; + placement_ = match[6] || match[3] || match[1]; + align_ = match[8] | match[4] || match[2] || 'center'; $q.when(loadTemplate(options.template, options.plain)).then(function(template) { template = angular.isString(template) ? -- cgit v1.2.3