Skip to content

Commit

Permalink
Merge pull request #15 from civilframe/fix-no-popup-bug
Browse files Browse the repository at this point in the history
Fix no popup bug
  • Loading branch information
Andrew Sullivan committed May 9, 2015
2 parents bce9451 + b923905 commit a26d66a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/angular-mapbox.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/directives/marker.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
controller.getMap().then(function(map) {
transclude(scope, function(transcludedContent) {
var popupContentElement;
if(transcludedContent) {
if(transcludedContent != null && transcludedContent.length > 0) {
popupContentElement = document.createElement('span');
for(var i = 0; i < transcludedContent.length; i++) {
popupContentElement.appendChild(transcludedContent[i]);
Expand Down

0 comments on commit a26d66a

Please sign in to comment.