New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE8 下avalon VM 定义关键字问题 #627

Closed
candyHuang opened this Issue Dec 24, 2014 · 3 comments

Comments

Projects
None yet
4 participants
@candyHuang

问题描述:

ie 8 下, 在vm中定义"vm.err....",定义的空数组会变成空字符 而不是原来的空数组,
如果err命名改为其他则无此问题
(1.3.5 -- 1.3.8 测试均有此问题)

代码如下

     <script src="avalon.min.js" type="text/javascript"></script>
      avalon.ready(function() {
        avalon.define("model", function(vm) {
            vm.rooms = [];
            vm.err = false; //err 是vm中不能用的关键字吗?
        });
        //扫描vm
        avalon.scan();
    });

调试结果

avalon.vmodels.model.rooms === ‘’;

请问正美这是什么原因造成的bug?
@RubyLouvre

@RubyLouvre

This comment has been minimized.

Show comment
Hide comment
@RubyLouvre

RubyLouvre Dec 24, 2014

Owner

经查证,err为VBScript的关键字,不要使用err http://www.herongyang.com/VBScript/Error-Handling-Err-Number-Clear.html

Owner

RubyLouvre commented Dec 24, 2014

经查证,err为VBScript的关键字,不要使用err http://www.herongyang.com/VBScript/Error-Handling-Err-Number-Clear.html

@RubyLouvre RubyLouvre closed this Dec 25, 2014

@hhuasz1124

This comment has been minimized.

Show comment
Hide comment

!

@liuyu9045

This comment has been minimized.

Show comment
Hide comment
- -!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment