From e836071a1ed544000bb1ea8f36027d4112b9244a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 15 Jan 2014 10:10:25 +0000 Subject: [PATCH] dont fail if undefined is passed to Ox._ --- source/Ox/js/Locale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox/js/Locale.js b/source/Ox/js/Locale.js index cc1ecd03..d1fbef1e 100644 --- a/source/Ox/js/Locale.js +++ b/source/Ox/js/Locale.js @@ -69,7 +69,7 @@ Ox._ = function(value, options) { var translation = translations[value]; log && log(value, translation); - translation = translation || value; + translation = translation || value || ''; return Ox.formatString(translation, options); };