Closed looshi closed 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
we don't use 'restoreDefaults' anymore, but other methods that do need to wait use this now.
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