Skip to content

Commit

Permalink
fix jasmine error
Browse files Browse the repository at this point in the history
  • Loading branch information
nstjean committed Jan 9, 2020
1 parent cd4fc52 commit ae024b2
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 31 deletions.
59 changes: 31 additions & 28 deletions dist/Leaflet.BlurredLocation.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion spec/javascripts/fixtures/index.html
Expand Up @@ -2,7 +2,6 @@
<html lang="en">
<head>
<title>Leaflet.BlurredLocation</title>
<script src="https://maps.googleapis.com/maps/api/js?libraries=places&language=en&key=AIzaSyAOLUQngEmJv0_zcG1xkGq-CXIPpLQY8iQ"></script>
<link href="../../../node_modules/leaflet/dist/leaflet.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="../dist/Leaflet.BlurredLocation.css" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion src/core/Geocoding.js
Expand Up @@ -38,7 +38,7 @@ module.exports = function Geocoding(options) {
}
},
error: function(error) {
console.log(error);
// console.log(error);
onResponse();
}
});
Expand Down
3 changes: 2 additions & 1 deletion src/ui/Interface.js
Expand Up @@ -27,7 +27,8 @@ module.exports = function Interface (options) {


options.onDrag = options.onDrag || function onDrag() {
function onPlacenameReturned(result = options.placenameDisplayOnError) {
function onPlacenameReturned(result) {
result = (result) ? result : options.placenameDisplayOnError; // this makes jasmine pass, other formats don't
$("#"+options.placenameDisplayId).val(result);
}

Expand Down

0 comments on commit ae024b2

Please sign in to comment.