From 487c654e7c6a1ee46af6cc66f4a8a665059a725b Mon Sep 17 00:00:00 2001 From: chanlee Date: Thu, 4 Feb 2016 16:01:32 +0900 Subject: [PATCH] remove comments --- src/object.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/object.js b/src/object.js index 2f6ebe02e8..957e20c846 100644 --- a/src/object.js +++ b/src/object.js @@ -867,26 +867,6 @@ Entry.EntryObject.prototype.initEntity = function(model) { json.bgColor = options.background; json.lineBreak = options.lineBreak; if (options.lineBreak) { - /* - var lines = json.text.split('\n'); - if (lines.length > 1) { - var maxLen = lines[0].length; - var maxHeight = lines.length; - for(var i=1,len=lines.length;i maxLen) { - maxLen = lines[i].length; - } - } - if (maxLen > 20) maxLen= 20; - if (maxHeight > 3) maxHeight = 3; - - json.width = 20 * maxLen; - json.height = 35 * maxHeight; - } else { - json.width = 20 * json.text.length; - json.height = 35; - } - */ json.width = 256; json.height = json.width * 0.5625; json.regX = json.width / 2;