Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit e2d6ad0

Browse files
committed
Update angular-google-maps.js
Replacing controlDiv.contents() with controlDiv.children() in Control.prototype.link. jqLite appears to have a bug in that its .append() method doesn't behave exactly like jQuery's, resulting in an error when using the jQuery and the mapControl directive and when there's leading whitespace in the ng-template script tag (which is probably always the case).
1 parent 5c4ba92 commit e2d6ad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dist/angular-google-maps.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4822,7 +4822,7 @@ Original idea from: http://stackoverflow.com/questions/22758950/google-map-drawi
48224822
});
48234823
controlDiv.children().data('$ngControllerController', templateCtrl);
48244824
}
4825-
return control = $compile(controlDiv.contents())(templateScope);
4825+
return control = $compile(controlDiv.children())(templateScope);
48264826
}).error(function(error) {
48274827
return _this.$log.error('mapControl: template could not be found');
48284828
}).then(function() {
@@ -10221,4 +10221,4 @@ angular.module('google-maps.extensions'.ns()).service('ExtendMarkerClusterer'.ns
1022110221
}).call(this);
1022210222
})
1022310223
};
10224-
});
10224+
});

0 commit comments

Comments
 (0)