diff --git a/lib/browser/client-scripts/gemini.js b/lib/browser/client-scripts/gemini.js index cc5cbd6e3..4a5376250 100644 --- a/lib/browser/client-scripts/gemini.js +++ b/lib/browser/client-scripts/gemini.js @@ -131,8 +131,7 @@ results = [], match; - for (value in values) { - value = values[value]; + values.forEach(function(value) { if ((match = value.match(regex))) { results.push({ offsetX: parseFloat(match[0]), @@ -142,7 +141,8 @@ inset: value.indexOf('inset') !== -1 }); } - } + }); + return results; }