src/Palete/VapiParser.vala
[app.Builder.js] / resources / Editors / Editor.Roo.LayoutDialog.js
index aa93007..91e91de 100644 (file)
@@ -524,6 +524,26 @@ Editor.Roo.LayoutDialog = new Roo.XComponent({
    loadData : function(data) { 
    
        //alert("IPC:TEST:" + JSON.stringify(data,null,4));
+   
+       var textFile = null;
+       
+       var makeTextFile = function (text) {
+           var data = new Blob([text], {type: 'text/plain'});
+   
+           // If we are replacing a previously generated file we need to
+           // manually revoke the object URL to avoid memory leaks.
+           if (textFile !== null) {
+             window.URL.revokeObjectURL(textFile);
+           }
+   
+           textFile = window.URL.createObjectURL(data);
+   
+           return textFile;
+         };
+       
+       
+       alert("IPC:TEST:" + makeTextFile(JSON.stringify(data,null,4)));
+       return;
        
        var fields = _this.grid.dataSource.reader.recordType.prototype.fields;