diff --git a/src/widgets/TbEditable.php b/src/widgets/TbEditable.php
index <HASH>..<HASH> 100644
--- a/src/widgets/TbEditable.php
+++ b/src/widgets/TbEditable.php
@@ -520,8 +520,8 @@ class TbEditable extends CWidget
 
         //wrap in anonymous function for live update
         if($this->liveTarget) {
-            $script .= "\n $('body').on('ajaxUpdate.editable', function(e){ if(e.target.id == '".$this->liveTarget."') yiiEditable(); });";
-            $script = "(function yiiEditable() {\n ".$script."\n}());";
+            $script2 = "\n$('body').on('ajaxUpdate.editable',function(e){ if(e.target.id == '".$this->liveTarget."') yiiEditable2(); });";
+            $script = "(function yiiEditable() {function yiiEditable2() {\n\t$script\n} $script2 }\n());";
         }
         
         Yii::app()->getClientScript()->registerScript(__CLASS__ . '-' . $selector, $script);
capsulate yiiEditable to prevent rebinding of ajaxUpdate.editable event