WagsMax
6 Feb 2012, 3:23 PM
In ST1.1, I was able to add a function at the end of the Sencha controller Ext.regController('ControllerName', {...}); code block that I could call from within the app like this (btw this is from the PhoneGap samples):
function gotFS(fileSystem) {
try {
fileSystem.root.getDirectory("path/to/my/file", {create:true,exclusive:false}, createFile, fail);
}
catch (e) {
alert("(gotFS) Failure writing file: " + e.decription);
}
}
How do I do this now in Designer Beta?
function gotFS(fileSystem) {
try {
fileSystem.root.getDirectory("path/to/my/file", {create:true,exclusive:false}, createFile, fail);
}
catch (e) {
alert("(gotFS) Failure writing file: " + e.decription);
}
}
How do I do this now in Designer Beta?