From 1063b78adc96fb7e585b546708df3eef07349003 Mon Sep 17 00:00:00 2001 From: Anmol Agrawal Date: Mon, 29 Sep 2014 21:38:42 +0530 Subject: change #2 to issue #74 --- scripts/rhizicore.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 70adfc3b..f8bf53ed 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -1064,3 +1064,8 @@ function customSize(type) { } return size; } + +function Expand(obj){ + if (!obj.savesize) obj.savesize=obj.size; + obj.size=Math.max(obj.savesize,obj.value.length); +} -- cgit v1.3.1 From cb00ca7ca7fff56ab35f0d2d7def54d9725eb601 Mon Sep 17 00:00:00 2001 From: Anmol Agrawal Date: Tue, 30 Sep 2014 16:07:04 +0530 Subject: #62 - Refactored code --- index.html | 2 +- scripts/rhizicore.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/index.html b/index.html index 2faa53ae..9685c594 100644 --- a/index.html +++ b/index.html @@ -49,7 +49,7 @@
-
+
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index f8bf53ed..4692602b 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -1065,7 +1065,9 @@ function customSize(type) { return size; } -function Expand(obj){ - if (!obj.savesize) obj.savesize=obj.size; - obj.size=Math.max(obj.savesize,obj.value.length); +function expand(obj){ + if (!obj.savesize) + obj.savesize = obj.size; + obj.size = Math.max(obj.savesize,obj.value.length); + } -- cgit v1.3.1