function NativeJsObject _text this text _text var that this this showA

1
2
3
4
5
6
7
function NativeJsObject(_text) {
this.text = "[" + _text + "]";
var that = this;
this.showAlert = function() {
alert(that.text);
}
}