I guess just like me you like to do alert('My message'); instead of:
Ti.UI.createAlertDialog({
message: 'My message'
}).show();
But I'd even more like to do alert('My message', 'My title', myCallback); instead of:
| { | |
| // -------------------------------------------------------------------- | |
| // JSHint Configuration, Strict Edition | |
| // -------------------------------------------------------------------- | |
| // | |
| // This is a options template for [JSHint][1], using [JSHint example][2] | |
| // and [Ory Band's example][3] as basis and setting config values to | |
| // be most strict: | |
| // | |
| // * set all enforcing options to true |
| // Déclaration d'une classe | |
| var MyClass = function (pParam1, pParam2) | |
| { | |
| // Scope fake publique | |
| var that; | |
| // Propriété privée | |
| var _privateVar = 5; | |
| // Méthode privée |
| { | |
| "globals": { | |
| "Ti": false, | |
| "Titanium": false, | |
| "Alloy": false, | |
| "describe": false, | |
| "it": false, | |
| "before": false, | |
| "beforeEach": false, | |
| "after": false, |
| 'Label[platform=android]': { | |
| color: '#000' // all platforms except Android default to black | |
| } | |
| 'Window': { | |
| backgroundColor: '#fff' // white background instead of default transparent | |
| } | |
| 'Window[platform=android]': { | |
| modal: false // make android windows all heavyweight |
| <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> |
| /* /Resources/app.js - Generated by Alloy, here to understand the flow */ | |
| var Alloy = require("alloy"), _ = Alloy._, Backbone = Alloy.Backbone; | |
| Alloy.createController("index"); |
| var v = Ti.UI.createView(); | |
| var s = new require('spinner').Spinner( | |
| v, // View to spin | |
| 30 // Degrees to spin per millisecond | |
| ); // Auto-starts | |
| // Stop | |
| s.stop(); |
I guess just like me you like to do alert('My message'); instead of:
Ti.UI.createAlertDialog({
message: 'My message'
}).show();
But I'd even more like to do alert('My message', 'My title', myCallback); instead of:
| 'Label[platform=android]': { | |
| color: '#000' // all platforms except Android default to black | |
| } | |
| 'Window': { | |
| backgroundColor: '#fff' // white background instead of default transparent | |
| } | |
| 'Window[platform=android]': { | |
| modal: false // make android windows all heavyweight |