2013-07-08 131 views
2

我有一個開始相當大的流星應用程序。我還有很重要的問題調試我的應用爲例我有一個錯誤:流星domutils錯誤

Uncaught TypeError: Cannot read property 'nodeType' of null domutils.js?52c3c7ff9e0acd52ac427a8f103760e222ba2722:295 
Uncaught TypeError: Cannot read property '_spark_bY6hxpJRdJcb2nynQ' of null 

我無法找到錯誤的根源。

+0

您是否使用某種外部JQuery庫來操縱html? – Akshat

+0

是的,我願意。我使用Jquery。 – gpasse

回答

0

我遇到了同樣的問題。對我來說,當我點擊導致加載新模板的鏈接時發生了這種情況。當我加入時:

event.stopImmediatePropagation(); 

如下所示,錯誤已被糾正。

Template.define_blocks.events({ 
    'click #tb_yes': function(event) { 
     event.preventDefault(); 
     event.stopImmediatePropagation(); 
});