diff options
| author | Neylor Ohmaly | 2014-02-05 20:41:30 -0200 |
|---|---|---|
| committer | Neylor Ohmaly | 2014-02-05 20:41:30 -0200 |
| commit | e079817b83005d16a4acb91ec2b893e503e2a597 (patch) | |
| tree | 0c5c7db28b4e753ba1d182754e4df8cc1d83afff | |
| parent | 72eaf55a4bb2ac4a88b58d115e52f7a0bb21d5dd (diff) | |
| download | nsPopover-e079817b83005d16a4acb91ec2b893e503e2a597.tar.bz2 | |
Fix a bug that causes the popover to not recognize the left|* and right|* placements
| -rw-r--r-- | src/nsPopover.js | 4 |
1 files 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) ?
|
