after upgrading to meteor 0.9.1 i keep getting "Warning: Blaze.insert has been deprecated." -
hi upgraded meteor app 0.9.1.1 , keep getting these 2 warnings in console
w20140910-18:37:07.781(3) (blaze.js:67) warning: blaze.render without parent element deprecated. must specify insert rendered content. logging.js:65 w20140910-18:37:07.787(3) (blaze.js:67) warning: blaze.insert has been deprecated. specify insert rendered content in call blaze.render. logging.js:65
i have no idea error occurs, or why happens.
any idea of might missing ?
thanks
the blaze api changed in meteor 0.9+ if using
ui.insert(ui.render(template.foo), document.body) ui.insert(ui.renderwithdata(template.foo, {bar: "baz"}), document.body)
you need update ui.insert()
& ui.insert(ui.renderwithdata())
to new blaze api:
blaze.render(templateorview, parentnode, [nextnode], [parentview]) blaze.renderwithdata(templateorview, data, parentnode, [nextnode], [parentview])
check updates: http://docs-0.9.1.meteor.com/#blaze_render
Comments
Post a Comment