Skip to content

Commit

Permalink
Added missing eval join method
Browse files Browse the repository at this point in the history
  • Loading branch information
rurseekatze committed May 26, 2015
1 parent 5cce06e commit 034152a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions kothic/style/mapcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ var MapCSS = {
return MapCSS.e_metric(arg);
},

// begin modified by rurseekatze: extended localizing so that captions made of more than one tag can be used
e_localize: function (tags, text) {
var locales = MapCSS.locales, i, j, tag;
var tagcombination = text;
Expand Down Expand Up @@ -169,9 +168,7 @@ var MapCSS = {

return tagcombination.trim();
},
// end modified by rurseekatze

// begin added by rurseekatze: added support for concat method in MapCSS styles
e_concat: function () {
var tagString = "";

Expand All @@ -180,7 +177,15 @@ var MapCSS = {

return tagString;
},
// end added by rurseekatze

e_join: function () {
var tagString = "";

for (var i = 1; i < arguments.length; i++)
tagString = tagString.concat(arguments[0]).concat(arguments[i]);

return tagString.substr(arguments[0].length);
},

loadStyle: function (style, restyle, sprite_images, external_images, presence_tags, value_tags) {
var i;
Expand Down

0 comments on commit 034152a

Please sign in to comment.