fix(floaty): bugs of floaty's view inflation

This commit is contained in:
hyb1996
2018-03-31 20:55:33 +08:00
parent 3dffb02bad
commit e3335f4b79
3 changed files with 34 additions and 26 deletions

View File

@@ -22,7 +22,7 @@ module.exports = function(runtime, global){
if(typeof(value) == 'undefined'){
value = floaty.__view_cache__[name];
if(!value){
value = window.getView(name);
value = window.findView(name);
if(value){
value = ui.__decorate__(value);
floaty.__view_cache__[name] = value;