Meteor-Community-Packages / meteor-autocomplete

Client/server autocompletion designed for Meteor's collections and reactivity.
https://atmospherejs.com/mizzao/autocomplete
MIT License
350 stars 109 forks source link

Template helper syntax deprecated with Meteor 0.9.4 #66

Closed jfly closed 9 years ago

jfly commented 9 years ago

See the second bullet point under https://github.com/meteor/meteor/blob/devel/History.md#api-changes. I see the following warnings when using meteor-autocomplete in my browser now:

W20141014-11:55:15.448(-7) (blaze.js:67) Warning: Assigning helper with `Template.inputAutocomplete.autocompleteContainer = ...` is deprecated.  Use `Template.inputAutocomplete.helpers(...)` instead.
lottamus commented 9 years ago

I'm getting them for Template.inputAutocomplete.attributes and Template.inputAutocomplete.autocompleteContainer

mizzao commented 9 years ago

Thanks, will get this fixed soon.

nicejwjin commented 9 years ago

I'm waiting for this update~ Bunch of messed warning message make my console dirty~ lol~ Cheer up-

mizzao commented 9 years ago

This should be fixed now in 0.4.9, please give it a try in your apps and let me know if there are any issues.

nicejwjin commented 9 years ago

I'm so sorry, I checked my source code again, and found some wrong expression to allocate helper object into the Template directly.

Thanks for your concern, mizzao.

mizzao commented 9 years ago

No idea what you are talking about. I definitely fixed some separate issues in the latest release of this package.

nicejwjin commented 9 years ago

I mean I used the code wrong way, and I fixed it. I used to use the template helpers something like this.

this is coffeeScript

Template.name someHelperName: -> // code events: 'click #someId': (err, tmpl) ->

So I just changed that to right way like this, Template.name.someHelperName ... and case was solved.

Although I solved this issue with the right expression, but the first expression was so easy to manage the helpers and events all together in the same place.

Could you any idea to use this advantage continually?

Thanks.