|
@@ -71,11 +71,11 @@ fb.ui = {
|
|
|
* If replacer function does not exist, the token is not inserted
|
|
|
* and no warning or error is raised.
|
|
|
*/
|
|
|
- fbIntl: function (element) {
|
|
|
- var fbIntl = FB_INTL({desc: element.desc});
|
|
|
+ fbIntl: function fbIntl (element) {
|
|
|
+ var result = FB_INTL({desc: element.desc});
|
|
|
if (!element.multiline && !element.tokens) {
|
|
|
- fbIntl.push(element.body);
|
|
|
- return fbIntl;
|
|
|
+ result.push(element.body);
|
|
|
+ return result;
|
|
|
}
|
|
|
var parts = [ element.body ];
|
|
|
if (element.multiline) { parts = splitReplace(parts, element.multiline, BR()); }
|
|
@@ -85,8 +85,8 @@ fb.ui = {
|
|
|
if (f) { parts.push(FB_INTL_TOKEN({name:token}, f(token, element))); }
|
|
|
});
|
|
|
}
|
|
|
- fbIntl.push.apply(fbIntl, parts);
|
|
|
- return fbIntl;
|
|
|
+ result.push.apply(result, parts);
|
|
|
+ return result;
|
|
|
},
|
|
|
};
|
|
|
|