aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTeddy Wing2014-06-25 20:53:40 -0400
committerTeddy Wing2014-06-25 20:53:40 -0400
commit0f134b2c8e02bbd8690516f42680e8be715af481 (patch)
tree3b275f3fc621f98037cb2f74c830ef9dbeb000b7 /README.md
parentb5af5fc5248ba2f2b10131ff3402febc695e6795 (diff)
downloadnsPopover-isolate-popover-scope.tar.bz2
Isolate popover directive scopeisolate-popover-scope
Previously, if multiple popovers were added, they would all share the same scope. I encountered an issue when trying to add several popovers, each with a "close" link that specifying `ng-click="hidePopover()"`. Since all popovers share scope, the `hidePopover()` function only knows about the last popover it saw. This means that only that last popover can be hidden using `hidePopover()`. This change ensures that all popovers have their own scope, so `hidePopover()` will now operate on the correct instance. Fixes #11.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions