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
exports.Person = function(firstName,lastName) { | |
this.firstName = firstName; | |
this.lastName = lastName; | |
}; |
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
//Wrapper class to create extensible Titanium components | |
exports.Component = function(/*Object*/ tiView) { | |
var self = { | |
__viewProxy:tiView | |
}; | |
//passthrough for add | |
self.add = function(/*Object*/ tiChildView) { | |
var v = tiChildView.__viewProxy||tiChildView; | |
self.__viewProxy.add(v); |