从view ie9 emberJS访问计算属性时创建的无限循环

时间:2014-08-28 17:50:46

标签: javascript ember.js internet-explorer-9

我有一个计算属性,用于为视图中的if语句返回true或false。认为这可能是某种范围问题。在ie9中,一旦值从true变为false(或可见到隐藏),它就会冻结,我甚至无法访问任何其他程序。我只能在任务管理器中使用我的键盘,因为如果我使用鼠标将焦点放在任何窗口上,它会像其他所有窗口一样冻结。当然,这个错误不会出现在chrome或firefox中,但是因为要求必须为ie9设置它。

我们的库版本是:Ember-1.0.0把手-1.0.0 我们希望尽快更新,但不确定何时会是

当视图访问计算属性时,是否有其他人遇到过浏览器崩溃?

showSelect: function(key, value) {
    debugger;
    try {
        //if (this.get('hideIt')) return false;
        return (this.get('groups')!=null && this.groups.get('content')!=null && this.groups.get('content').length>0);
    } catch (err33) {
        App.notificationSystem.displayNotification('Landing Page Group Dropdown vis failure.', 'error', 'error', true, err33);
        return false;
    }
}.property('showSelectP').cacheable()

{{#if view._context.showSelect}}
    {{view Ember.Select 
        contentBinding="view._context.groups.content"
        valueBinding="view._context.current"
        optionLabelPath="content.name"}}
    {{/if}}

感谢您的帮助

要添加的东西,我们创造了一个解决方案,但它对我们的喜欢有点讨厌,但暂时完成工作。 showSelect函数中注释掉的行是我们工作的一部分,有两个单独的函数被调用,使用jquery来隐藏或显示dropwdown,没什么花哨的

0 个答案:

没有答案