[]1.7.3之后的版本,重复类名出现bug
框架是puremvc 多核版本,旧项目layaAir版本 1.5+,电脑系统mac。之前都是用layaAir老版本 以前的。最近想更新下,结果出bug了。然后从1.5.1版本开始,一个个的替换。发现1.7.3后面到最新的1.7.6 都报错。
查了下。是找不到那个绑定的重复类。1.7.2及以前的,重复的类名都是 类名加数字。1.7.3以后都是 有个‘$‘加数字。
console报错输出:Uncaught ReferenceError: StartUpCommand$3 is not defined
查了代码
我在他下面找到了那个命名为 ‘StartUpCommand$3’ 的地方
反正用1.7.2版本编译后是没问题的。现在在纠结。有办法解决么?实在没办法只能一直用1.7.2了。
查了下。是找不到那个绑定的重复类。1.7.2及以前的,重复的类名都是 类名加数字。1.7.3以后都是 有个‘$‘加数字。
console报错输出:Uncaught ReferenceError: StartUpCommand$3 is not defined
查了代码
我在他下面找到了那个命名为 ‘StartUpCommand$3’ 的地方
反正用1.7.2版本编译后是没问题的。现在在纠结。有办法解决么?实在没办法只能一直用1.7.2了。
没有找到相关结果
已邀请:
要回复问题请先登录
3 个回复
maliwen0
赞同来自:
maliwen0
赞同来自:
比如:
__class(StartUpCommand,'com.game.modules.hall.controller.StartUpCommand',_super);
__class(StartUpCommand,'com.game.modules.login.controller.StartUpCommand',_super,'StartUpCommand$1');
__class(StartUpCommand,'com.game.shell.controller.StartUpCommand',_super,'StartUpCommand$3');
我全文搜了下来。就没发现有 StartUpCommand$2 这个。。。。
cuixueying
赞同来自: