remove multi-line string support for my stupid coding

This commit is contained in:
hyb1996
2017-05-15 22:03:49 +08:00
parent 91a1cb77d8
commit ec98d75d3b
7 changed files with 22 additions and 22 deletions

View File

@@ -3,7 +3,7 @@ module.exports = function(__runtime__, scope){
ui.__id_cache__ = {};
ui.layout = function(xml){
view = ui.inflate(activity, xml);
view = ui.inflate(activity, xml.toString());
ui.setContentView(view);
}
@@ -14,6 +14,8 @@ module.exports = function(__runtime__, scope){
}
ui.id = function(id){
if(!ui.view)
return null;
var v = ui.view.getChildAt(0).id(id);
if(v){
v = decorate(v);
@@ -67,7 +69,7 @@ module.exports = function(__runtime__, scope){
ui[name] = value;
},
get: function(name, start) {
if(!ui[name]){
if(!ui[name] && ui.view){
var cacheView = ui.__id_cache__[name];
if(cacheView){
return cacheView;