Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Please create an undo example using time-travel #77

Closed
kristoferjoseph opened this issue Aug 7, 2014 · 4 comments
Closed

Please create an undo example using time-travel #77

kristoferjoseph opened this issue Aug 7, 2014 · 4 comments

Comments

@kristoferjoseph
Copy link

I took a stab at using time-travel, but it doesn't seem to be exported with the mercury object. Most likely I am missing something obvious, but I would very much like to see how you expect it to be used.
Thank you

@Raynos
Copy link
Owner

Raynos commented Aug 8, 2014

👍

I think its being used in the TodoMVC example but I'll build a GUI widget for it.

@kristoferjoseph
Copy link
Author

Could you export the time-travel as caretaker? ( or something similar ) off of the mercury object? You are using:

var TimeTravel = require("../../time-travel.js")

I would rather do something like:

var caretaker = mercury.caretaker

Or am i dense and there is a better way to require this module?

@Raynos
Copy link
Owner

Raynos commented Aug 8, 2014

@kristoferjoseph

just require('mercury/time-travel') that works.

@kristoferjoseph
Copy link
Author

Yup. That works. For some reason I thought it had to be part of the mercury API since all of the other objects were exported that way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants