mystor / meteor-device-detection

(NO LONGER SUPPORTED) Client-Side Device Type Detection & Template Switching with Optional Meteor-Router Support
MIT License
69 stars 17 forks source link

strange error in Meteor 0.8 with Blaze rc1 #7

Closed stefanocudini closed 10 years ago

stefanocudini commented 10 years ago

with Blaze 0.8 all work... but when I use: mrt --release blaze-rc1

show this error:

Uncaught TypeError: Object #<Object> has no method 'registerHelper' device-detection.js:297

though UI.registerHelper is defined... I don't understand!

stefanocudini commented 10 years ago

may be a problem with closure module?

mystor commented 10 years ago

blaze-rc1 was released a while ago, and the API for blaze has changed quite a bit since then. In blaze-rc1 UI.registerHelper is not defined. I recommend that you update to the latest version of Meteor, which also uses the blaze rendering engine, with the API that will probably still be present in Meteor 1.0. I don't intend to maintain backwards compatibility with release candidates.