Multiple jQuery objects in Backbone view

前端 未结 1 735
时光说笑
时光说笑 2021-01-27 21:10

I am using JQuery and Backbone to build a website, and it seems like a recent update in Chrome has caused some weird behaviour. Here is my Backbone.js view class:



        
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-27 21:32

    This has been fixed. Turns out, I included jQuery twice in my HTML template document. The second one is deferred, so it loaded when all my other scripts were loaded. So the jQuery object on frame 1 is different from the jQuery objects after that.

    0 讨论(0)
提交回复
热议问题