diff --git a/Examples/OfflineEditing/index.js b/Examples/OfflineEditing/index.js index aaa5484b..6708635b 100644 --- a/Examples/OfflineEditing/index.js +++ b/Examples/OfflineEditing/index.js @@ -3,7 +3,7 @@ // create a shared object. This function call will return a promise! Y({ db: { - name: 'IndexedDB', + name: 'indexeddb', namespace: 'offlineEditingDemo' }, connector: { @@ -11,8 +11,8 @@ Y({ room: 'offlineEditingDemo', debug: true }, - types: [], - sourceDir: '/bower_components/' + types: ['Array', 'Text'], + sourceDir: '/bower_components' }).then(function (yconfig) { // yconfig holds all the information about the shared object window.yconfig = yconfig @@ -33,10 +33,10 @@ Y({ text.bind(contenteditable) } }) - // create a shared TextBind + // create a shared Text var textpromise = yconfig.root.get('text') if (textpromise == null) { - yconfig.root.set('text', Y.TextBind) + yconfig.root.set('text', Y.Text) } // We also provide a button for disconnecting/reconnecting the shared element var button = document.querySelector('#button') diff --git a/Examples/TextBind/index.html b/Examples/TextBind/index.html index 9bfd4525..891dc69a 100644 --- a/Examples/TextBind/index.html +++ b/Examples/TextBind/index.html @@ -5,8 +5,7 @@
- - +