Backbone.js cause bug only in IE7

后端 未结 4 1937
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 11:44

I\'m developping a web app with CodeIgniter on back-end and Backbone.js on front-end. I\'m also using HTML5 Boilerplate as my start template.

I\'m using Backbone\'s

4条回答
  •  别那么骄傲
    2020-12-15 12:51

    I found a solution for this problem from Jon Leighton in the offical issue list: https://github.com/documentcloud/backbone/issues/228

    Until an offical patch add this to the backbone.js (line 689 in Backbone 0.3.3)

    this.iframe.document.open().close(); 
    this.iframe.location.hash = window.location.hash;
    

    after the following line:

    this.iframe = $('iframe src="javascript:0" tabindex="-1" ').hide().appendTo('body')[0].contentWindow;

    (I couldn´t write the complete i-frame tag < & /> - it isn´t allowed here :))

提交回复
热议问题