From 9aba28090d2f9c00d4f83b7cd8c99f6b17615154 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 25 May 2011 08:23:43 -0400 Subject: [PATCH] fix wardrobe.js crash on IE --- public/javascripts/wardrobe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/wardrobe.js b/public/javascripts/wardrobe.js index e1e92d1a..96377c85 100644 --- a/public/javascripts/wardrobe.js +++ b/public/javascripts/wardrobe.js @@ -140,7 +140,7 @@ function Wardrobe() { function getSlug() { var slug = item.id.toString(); - if(this.hasOwnProperty('name')) { + if(item.hasOwnProperty('name')) { slug += '-' + getNameForSlug(); } return slug;