Closed skypanther closed 10 years ago
≫ triple [launching app] > var win = Ti.UI.createWindow() undefined > win.backgroundColor = 'red' 'red' > win.open(); undefined > .clear > win.open(); [ERROR] Script Error { [ERROR] backtrace = "#0 () at :0"; [ERROR] line = 1; [ERROR] message = "Can't find variable: win"; [ERROR] name = ReferenceError; [ERROR] sourceId = 250912608; [ERROR] } > .save ./triple.txt
Open triple.txt and you'll see the three window commands. I would expect it to be empty. Maybe I misunderstand the purpose of the .clear command.
.clear
Yes, you're misunderstanding clear. It clears the execution context in the app. It has nothing to do with the command list in the REPL.
Open triple.txt and you'll see the three window commands. I would expect it to be empty. Maybe I misunderstand the purpose of the
.clear
command.