summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xStoneIsland/www/js/lib/products/ProductView.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/products/ProductView.js b/StoneIsland/www/js/lib/products/ProductView.js
index 427f5f0a..502347af 100755
--- a/StoneIsland/www/js/lib/products/ProductView.js
+++ b/StoneIsland/www/js/lib/products/ProductView.js
@@ -188,9 +188,10 @@ var ProductView = ScrollableView.extend({
var title_lines = title.split('<br>').map(function(s){
if (s.indexOf("LIMITED EDITION") !== -1) {
this.$type.html("<span class='red'>" + s + "</span>")
+ return ''
}
return s
- })
+ }.bind(this))
title = title_lines.join('<br><br>')
}
this.$title.html(title)