Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix punctuation in error messages :neckbeard:

  • Loading branch information...
commit f26d9f7b87d56a512d77b778dff96178919cd404 1 parent b782a81
Francesco Rodriguez authored
Showing with 6 additions and 6 deletions.
  1. +5 −5 gmaps.js
  2. +1 −1  test/spec/MapSpec.js
View
10 gmaps.js
@@ -37,7 +37,7 @@ if(window.google && window.google.maps){
};
if (typeof(this.el) === 'undefined' || this.el === null)
- throw 'No element defined';
+ throw 'No element defined.';
this.el.style.width = options.width || this.el.scrollWidth || this.el.offsetWidth;
this.el.style.height = options.height || this.el.scrollHeight || this.el.offsetHeight;
@@ -506,7 +506,7 @@ if(window.google && window.google.maps){
return marker;
}
else {
- throw 'No latitude or longitude defined';
+ throw 'No latitude or longitude defined.';
}
};
@@ -521,7 +521,7 @@ if(window.google && window.google.maps){
marker = this.createMarker(options);
}
else {
- throw 'No latitude or longitude defined';
+ throw 'No latitude or longitude defined.';
}
}
@@ -1352,7 +1352,7 @@ if(window.google && window.google.maps){
this.map.mapTypes.set(mapTypeId, mapType);
}
else {
- throw "'getTileUrl' function required";
+ throw "'getTileUrl' function required.";
}
};
@@ -1365,7 +1365,7 @@ if(window.google && window.google.maps){
this.map.overlayMapTypes.insertAt(overlayMapTypeIndex, options);
}
else {
- throw "'getTile' function required";
+ throw "'getTile' function required.";
}
};
View
2  test/spec/MapSpec.js
@@ -2,7 +2,7 @@ describe("Creating a map", function() {
var basic_map, advanced_map, map_with_events, map_with_custom_controls;
it("should throw an error if element is not defined", function() {
- expect(function() { new GMaps({}); }).toThrow(new Error('No element defined'));
+ expect(function() { new GMaps({}); }).toThrow(new Error('No element defined.'));
});
describe("With basic options", function() {
Please sign in to comment.
Something went wrong with that request. Please try again.