From a7dffa6ce989843e458a4bed04731f697ba95c8a Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Tue, 19 Aug 2014 21:22:43 +0200 Subject: [PATCH] updated README --- README.md | 4 ++-- examples/PeerJs-Json/README.md | 2 +- examples/PeerJs-Json/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 48f15a32..97fe195a 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ Yatta! provides similar functionality as [ShareJs](https://github.com/share/Shar but does not require you to understand how the internals work. The predefined data structures provide a simple API to access your shared data structures. Predefined data structures: -* Text - [Collaborative Text Editing Example](http://dadamonad.github.io/Yatta/examples/TextEditing/) and [example code](./examples/TextEditing/) -* Json - [example code](./examples/Json/) +* Text - [Collaborative Text Editing Example](http://dadamonad.github.io/Yatta/examples/TextEditing/) and [Source](./examples/TextEditing/) +* Json - [Tutorial](./examples/PeerJs-Json/) * XML (coming soon) Unlike other frameworks, Yatta! supports P2P message propagation and is not bound to a specific communication protocol. diff --git a/examples/PeerJs-Json/README.md b/examples/PeerJs-Json/README.md index dc3cce8e..f14bf2ef 100644 --- a/examples/PeerJs-Json/README.md +++ b/examples/PeerJs-Json/README.md @@ -115,7 +115,7 @@ Apply a 'addProperty' - listener to a JsonType. console.log("Property '" + property_name + "' was created!"); }; yatta.on('addProperty', addProperty); - yatta.val('q', {z: 7}); // Property 'newString' was created! + yatta.val('new', {z: 7}); // Property 'new' was created! ``` diff --git a/examples/PeerJs-Json/index.js b/examples/PeerJs-Json/index.js index fb64d9c4..d0683e6c 100644 --- a/examples/PeerJs-Json/index.js +++ b/examples/PeerJs-Json/index.js @@ -87,7 +87,7 @@ Y.createPeerJsConnector({key: 'h7nlefbgavh1tt9'}, function(Connector, user_id){ console.log("Property '" + property_name + "' was created!"); }; yatta.on('addProperty', addProperty); - yatta.val('q', {z: 7}); // Property 'newString' was created! + yatta.val('new', {z: 7}); // Property 'new' was created! /** Apply a 'change' - listener to a JsonType.