looshi / Blaze-Haus

Edit blaze templates and css at runtime
6 stars 0 forks source link

Wrap Meteor Method "restoreDefaults" into Fiber #10

Closed looshi closed 9 years ago

looshi commented 9 years ago

The goal of this ticket is to make the Meteor Method 'restoreDefaults' return a value asynchronously to the client. This is a decent pattern to do so : https://www.discovermeteor.com/patterns/5828399

This is the Meteor Method : https://github.com/looshi/Meteor-Live-Template-Editor/blob/master/server/CollectionMethods.js#L58 which should either throw or return Currently this is the only client call which needs to handle the result or error returned : https://github.com/looshi/Meteor-Live-Template-Editor/blob/master/client/views/inspector/Inspector.js#L75 And remove the setTimeout hack

looshi commented 9 years ago

we don't use 'restoreDefaults' anymore, but other methods that do need to wait use this now.