This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <<MyElement> becomes Ti.UI.createMyElement, so that doesn't work | |
Ti.UI.createMyElement({ | |
id: 'myId' | |
}); | |
// But give it a namespace and all of a sudden, it is translated to: | |
Sc.UI.createMySecondElement({ | |
id: 'mySecondId' | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var args = arguments || {}; | |
/** | |
* Works, but you loose change listeners on the original model | |
*/ | |
$.user.set(args.user.attributes); | |
/** | |
* Does not work | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createAlertDialog: function(config) { | |
return Ti.UI.createAlertDialog(config); | |
}, | |
createAnimation: function(config) { | |
return Ti.UI.createAnimation(config); | |
}, | |
createButton: function(config) { |
NewerOlder