From 1bb3eabf1ab42fba9d86fefdd8c41b5fc6293c2e Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 27 Jun 2011 19:41:30 +0530 Subject: [PATCH] fixed Maran --- radia.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/radia.js b/radia.js index 7e8f35c..5e7b389 100644 --- a/radia.js +++ b/radia.js @@ -115,8 +115,11 @@ $(function() { $this.data("name", thisData.name); $this.data("type", thisData.type); $this.data("link", thisData.link); - $this.data("lines", thisData.lines.split(", ")); - + if (thisData.hasOwnProperty("lines")) { + $this.data("lines", thisData.lines.split(", ")); + } else { + $this.data("lines", []); + } // $this.addClass(thisData.type); // console.log($this.data("key")); // console.log($this.hasTooltip());