From 770cf7ad90a9345359fa55faff6443f200059cc7 Mon Sep 17 00:00:00 2001
From: vitalets <noginsk@rambler.ru>
Date: Fri, 11 Jan 2013 17:09:53 +0400
Subject: [PATCH] rename `shown` --> `postrender` in text input

---
 src/editable-form/editable-form.js | 12 +++++-------
 src/inputs/text.js                 |  2 +-
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/editable-form/editable-form.js b/src/editable-form/editable-form.js
index b4b0637..3bff76d 100644
--- a/src/editable-form/editable-form.js
+++ b/src/editable-form/editable-form.js
@@ -106,9 +106,9 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
 
                 this.showForm();
                 
-                //call shown method to perform actions required form to be shown
-                if(this.input.shown) {
-                    this.input.shown();
+                //call postrender method to perform actions required visibility of form
+                if(this.input.postrender) {
+                    this.input.postrender();
                 }                
             }, this));
         },
@@ -315,10 +315,8 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
             if(key === 'value') {
                 this.setValue(value);
             }
-            //pass to input
-//            if(this.input && this.input.option) {
-//                this.input.option(key, value);
-//            }
+            
+            //do not pass option to input as it is passed in editable-element
         },
 
         setValue: function(value, convertStr) {
diff --git a/src/inputs/text.js b/src/inputs/text.js
index 267878e..93fd193 100644
--- a/src/inputs/text.js
+++ b/src/inputs/text.js
@@ -55,7 +55,7 @@ $(function(){
            }            
         },
         
-        shown: function() {
+        postrender: function() {
             if(this.$clear) {
                 //can position clear button only here, when form is shown and height can be calculated
                 var h = this.$input.outerHeight() || 20,