{
    doc_type: 'visifile'
    ,
    name: 'search'
    ,
    version: 1
    ,
    type: 'app'
    ,
    text: 'Search app'

    ,
    initText: 'Search is ALIVE!!!!'
    ,
    events: {
        "This will return the search app": {
            on: "app",
            do: function(args, returnfn) {
                var mm = new Moon({
                  el: "#" + args.root_element
                  ,
                  template: "<div>this is the moon seach app {{msg}}</div>"
                  ,
                  data: {
                    msg: "..."
                },
                methods: {
                    search: function() {
                        callDriverMethod( "commandLine",
                                          "ls"
                                          ,{}
                                    ,
                                    function(result) {
                                        console.log("3) returned result: " + JSON.stringify(result,null,2))
                                    })
                    }
                },
                  store: store
                })
                setTimeout(function() {
                    mm.set("msg", "zoo")
                    alert("done")
                }
                ,1000)

                returnfn({})


            }, end: null
        }

    }

}

@@ -426,16 +426,37 @@
 e: %22%3Cdiv
+ m-on:click='search2'
 %3Ethis is
@@ -1057,32 +1057,33 @@
                %7D
+,
 %0A               
@@ -1072,34 +1072,24 @@
 %7D,%0A         
-       %7D,%0A
             
@@ -1091,27 +1091,29 @@
     
-       store: store
+search2: function() %7B
 %0A   
@@ -1115,37 +1115,32 @@
 %7B%0A              
-  %7D)%0A
                 
@@ -1133,22 +1133,16 @@
         
-      
 setTimeo
@@ -1177,16 +1177,24 @@
         
+        
 mm.set(%22
@@ -1206,16 +1206,24 @@
  %22zoo%22)%0A
+        
         
@@ -1264,18 +1264,29 @@
         
-%7D%0A
+        %7D%0A   
         
@@ -1297,15 +1297,112 @@
     
+     
 ,1000)%0A
+                    %7D%0A                %7D,%0A                  store: store%0A                %7D)%0A%0A
 %0A   

call search when text clicked