Permalink
Browse files

syntax: Make closure compiler happy

  • Loading branch information...
1 parent 693f716 commit 4bb9242f3a6aa59174e701ba7ad76ecfbe2089b7 Pavel Shramov committed Jun 23, 2012
Showing with 6 additions and 6 deletions.
  1. +2 −2 control/Layers.Load.js
  2. +1 −1 layer/Icon.Canvas.js
  3. +2 −2 layer/OpenStreetBugs.js
  4. +1 −1 layer/tile/Bing.js
View
@@ -42,13 +42,13 @@ L.Control.Layers.include({
loadLayer: function(name, deflt) {
var _this = this, l = this._layer_defs[name];
- l.default = deflt;
+ l['default'] = deflt;
this._loadScripts(l.js.reverse(), function(l) {_this._loadLayer(l)}, l);
},
_loadLayer: function(l) {
var x = l.init();
- if (l.default && this._map)
+ if (l['default'] && this._map)
this._map.addLayer(x);
if (!l.overlay)
this.addBaseLayer(x, l.name);
View
@@ -23,5 +23,5 @@ L.Icon.Canvas = L.Icon.extend({
},
draw: function(canvas, width, height) {
- },
+ }
});
View
@@ -471,7 +471,7 @@ L.Marker.include({
};
this.on("mouseout", onout, this);
this.on("click", onclick, this);
- },
+ }
});
L.i18n = function(s) { return (L.i18n.lang[L.i18n.current] || {})[s] || s; }
@@ -493,5 +493,5 @@ L.i18n.extend('ru', {
"Cancel":"Отмена",
"New bug":"Я нашел ошибку",
"Find your bug?":"Нашли ошибку?",
- "Contact details and someone will fix it.":"Напишите подробнее и кто-нибудь её исправит.",
+ "Contact details and someone will fix it.":"Напишите подробнее и кто-нибудь её исправит."
});
View
@@ -1,7 +1,7 @@
L.BingLayer = L.TileLayer.extend({
options: {
subdomains: [0, 1, 2, 3],
- attribution: 'Bing',
+ attribution: 'Bing'
},
initialize: function(key, options) {

0 comments on commit 4bb9242

Please sign in to comment.