Skip to content
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

element== ''时出错 #77

Open
qidizi opened this issue Jun 10, 2014 · 0 comments
Open

element== ''时出错 #77

qidizi opened this issue Jun 10, 2014 · 0 comments

Comments

@qidizi
Copy link

qidizi commented Jun 10, 2014

        new MyWidget({
            template: '#indexTopCommentTpl', //这个模板因为列表是空的,返回 ''
            model:model,
            parentNode: '#indexTopComment'
        }).render();



    var MyWidget = widget.extend({
        Implements: templatable 
    });

上面的代码因为 返回了'' 所以,后面的处理会出错

template

虽然防错了,我觉得还是应该没有内容就没有内容,而不是出错.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant