ManuelDeLeon / viewmodel

MVVM for Meteor
https://viewmodel.org
MIT License
205 stars 23 forks source link

TypeError: autorun.call is not a function #176

Closed fvpDev closed 8 years ago

fvpDev commented 8 years ago

Receiving the following in the browser console log, v3.0.0 update:

Exception from Tracker afterFlush function:
TypeError: autorun.call is not a function
    at results.push.fun (viewmodel.coffee:499)
    at view.js:199
    at Function.Template._withTemplateInstanceFunc (template.js:457)
    at view.js:197
    at Object.Blaze._withCurrentView (view.js:538)
    at viewAutorun (view.js:196)
    at Tracker.Computation._compute (tracker.js:323)
    at new Tracker.Computation (tracker.js:211)
    at Object.Tracker.autorun (tracker.js:562)
    at Blaze.View.autorun (view.js:209)
ManuelDeLeon commented 8 years ago

How can I reproduce it?

fvpDev commented 8 years ago

It's in the link I sent you yesterday... Is it working for you? I'll make a new repro that's simpler and send you the link, however it seems to have happened for each template that is rendered

ManuelDeLeon commented 8 years ago

I don't remember, did you send me a private message? If you can, just copy /paste it here or send it again. On Feb 2, 2016 5:58 PM, "Fedor Parfenov" notifications@github.com wrote:

It's in the link I sent you yesterday... Is it working for you? I'll make a new repro that's simpler and send you the link, however it seems to have happened for each template that is rendered

— Reply to this email directly or view it on GitHub https://github.com/ManuelDeLeon/viewmodel/issues/176#issuecomment-178929289 .

fvpDev commented 8 years ago

Here's a much simpler example: vmRepros.zip

View at http://fvptests.meteor.com

I have uploaded to github now: https://github.com/fvpDev/_vmTestRepros

fvpDev commented 8 years ago

Sorry bout the above .zip having wrong code and the /.meteor/local folder included, here's an update which also includes v3.1.1:

_vmTestRepros.zip

ManuelDeLeon commented 8 years ago

Thanks for the help Pick up v3.1.2

fvpDev commented 8 years ago

You're awesome! Next time I get paid I'm buying you a beer

fvpDev commented 8 years ago

I noticed in History.md for v3.1.2 you put "Fix onCreated/onRendered/onDestroyed/autorun when using an array of functions"... I remember in the docs that you mention multiple functions only within the section for autoruns. I was wondering: so does this mean we can now have multiple functions (array of funcs) for onCreated/onRendered/onDestroyed as well?

ManuelDeLeon commented 8 years ago

Yes, you can now use an array of functions to run on onCreated/onRendered/onDestroyed

fvpDev commented 8 years ago

Getting this with viewmodel-react

ManuelDeLeon commented 8 years ago

Heh, I'll fix it... =)

On Aug 20, 2016 4:10 PM, "Fedor Parfenov" notifications@github.com wrote:

Getting this with viewmodel-react

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/ManuelDeLeon/viewmodel/issues/176#issuecomment-241226915, or mute the thread https://github.com/notifications/unsubscribe-auth/AED31hRp6OR-2ay3psUt8dboWKDGYa-5ks5qh3tVgaJpZM4HR5uk .

fvpDev commented 8 years ago

Moving this over to there