remotestorage / remotestorage.js

⬡ JavaScript client library for integrating remoteStorage in apps
https://remotestoragejs.readthedocs.io
MIT License
2.32k stars 141 forks source link

session.discoverStorageInfo doesn't exist #50

Closed tantaman closed 12 years ago

tantaman commented 12 years ago

When using the widget from the developer preview of remoteStorage I get the following error:

Uncaught TypeError: Object #<Object> has no method 'discoverStorageInfo' (line 1557 of latest/remoteStorage-debug.js)

It looks like: discoverStorageInfo is called from https://github.com/unhosted/remoteStorage.js/blob/v0.7/src/lib/widget.js#L141 but doesn't seem to ever be defined on the session object https://github.com/unhosted/remoteStorage.js/blob/v0.7/src/lib/session.js#L138

There are also two definitions of discoverStorageInfo in the same scope https://github.com/unhosted/remoteStorage.js/blob/v0.7/src/lib/session.js#L26 https://github.com/unhosted/remoteStorage.js/blob/v0.7/src/lib/session.js#L84

michielbdejong commented 12 years ago

yes, we're still working on this, that function is moving from session to widget.

you should be fine developing your app against the various modules, storing data on the client, as long as you don't try to connect any remoteStorage. then as soon as we have the sync working, we will enable the widget.

On Sat, Jul 7, 2012 at 12:10 AM, Matt Crinklaw-Vogt reply@reply.github.com wrote:

When using the widget from the developer preview of remoteStorage I get the following error:

Uncaught TypeError: Object #<Object> has no method 'discoverStorageInfo' (line 1557 of latest/remoteStorage-debug.js)

It looks like: discoverStorageInfo is called from https://github.com/unhosted/remoteStorage.js/blob/v0.7/src/lib/widget.js#L141 but doesn't seem to ever be defined on the session object https://github.com/unhosted/remoteStorage.js/blob/v0.7/src/lib/session.js#L138

There are also two definitions of discoverStorageInfo in the same scope https://github.com/unhosted/remoteStorage.js/blob/v0.7/src/lib/session.js#L26 https://github.com/unhosted/remoteStorage.js/blob/v0.7/src/lib/session.js#L84


Reply to this email directly or view it on GitHub: https://github.com/unhosted/remoteStorage.js/issues/50

michielbdejong commented 12 years ago

sorry for the confusion. i changed the developer preview test to "Local use only, no async sync yet. But modules work!"