Browse Source

fix fbIntl

Herbert Vojčík 13 years ago
parent
commit
1e98581470
1 changed files with 6 additions and 6 deletions
  1. 6 6
      lib-app/facebook-ext.js

+ 6 - 6
lib-app/facebook-ext.js

@@ -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;
   },
 };