changed import method
This commit is contained in:
@@ -14,7 +14,7 @@ A working widget implementation is [IwcJson.xml](./IwcJson.xml) and the js-file
|
||||
|
||||
```js
|
||||
function init(){
|
||||
createIwcConnector(function(Connector, user_id){
|
||||
Y.createIwcConnector(function(Connector, user_id){
|
||||
```
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ You don't have to use the proposed user_id.
|
||||
|
||||
```js
|
||||
console.log("me is number 2")
|
||||
yatta = new JsonYatta(2, Connector);
|
||||
yatta = new Y.JsonYatta(2, Connector);
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
A working widget implementation is [IwcJson.xml](./IwcJson.xml) and the js-file is [index.js](./index.js)
|
||||
*/
|
||||
function init(){
|
||||
createIwcConnector(function(Connector, user_id){
|
||||
Y.createIwcConnector(function(Connector, user_id){
|
||||
/**
|
||||
You don't have to use the proposed user_id.
|
||||
*/
|
||||
@@ -24,7 +24,7 @@ function init(){
|
||||
/**
|
||||
Though, it is recommended to use the user_id
|
||||
*/
|
||||
yatta = new JsonYatta(user_id, Connector);
|
||||
yatta = new Y.JsonYatta(user_id, Connector);
|
||||
|
||||
|
||||
})
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
A working widget implementation is [IwcJson.xml](./IwcJson.xml) and the js-file is [index.js](./index.js)
|
||||
*/
|
||||
function init(){
|
||||
createIwcConnector(function(Connector, user_id){
|
||||
Y.createIwcConnector(function(Connector, user_id){
|
||||
/**
|
||||
You don't have to use the proposed user_id.
|
||||
*/
|
||||
console.log("me is number 2")
|
||||
yatta = new JsonYatta(2, Connector);
|
||||
yatta = new Y.JsonYatta(2, Connector);
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ A working widget implementation is [IwcJson.xml](./IwcJson.xml) and the js-file
|
||||
|
||||
```js
|
||||
function init(){
|
||||
createIwcConnector(function(Connector, user_id){
|
||||
Y.createIwcConnector(function(Connector, user_id){
|
||||
```
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ it will be instantly shared with all the other collaborators.
|
||||
|
||||
|
||||
```js
|
||||
yatta = new JsonYatta(user_id, Connector);
|
||||
yatta = new Y.JsonYatta(user_id, Connector);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
A working widget implementation is [IwcJson.xml](./IwcJson.xml) and the js-file is [index.js](./index.js)
|
||||
*/
|
||||
function init(){
|
||||
createIwcConnector(function(Connector, user_id){
|
||||
Y.createIwcConnector(function(Connector, user_id){
|
||||
/**
|
||||
yatta is the shared json object. If you change something on this object,
|
||||
it will be instantly shared with all the other collaborators.
|
||||
*/
|
||||
yatta = new JsonYatta(user_id, Connector);
|
||||
yatta = new Y.JsonYatta(user_id, Connector);
|
||||
|
||||
/**
|
||||
Add a integer-property like this
|
||||
|
||||
@@ -14,7 +14,7 @@ A working widget implementation is [IwcJson.xml](./IwcJson.xml) and the js-file
|
||||
|
||||
```js
|
||||
function init(){
|
||||
createPeerJsConnector(function(Connector, user_id){
|
||||
Y.createPeerJsConnector(function(Connector, user_id){
|
||||
```
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ it will be instantly shared with all the other collaborators.
|
||||
|
||||
|
||||
```js
|
||||
yatta = new JsonYatta(user_id, Connector);
|
||||
Y.yatta = new JsonYatta(user_id, Connector);
|
||||
|
||||
|
||||
});
|
||||
|
||||
@@ -14,12 +14,12 @@
|
||||
A working widget implementation is [IwcJson.xml](./IwcJson.xml) and the js-file is [index.js](./index.js)
|
||||
*/
|
||||
function init(){
|
||||
createPeerJsConnector(function(Connector, user_id){
|
||||
Y.createPeerJsConnector(function(Connector, user_id){
|
||||
/**
|
||||
yatta is the shared json object. If you change something on this object,
|
||||
it will be instantly shared with all the other collaborators.
|
||||
*/
|
||||
yatta = new JsonYatta(user_id, Connector);
|
||||
Y.yatta = new JsonYatta(user_id, Connector);
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user