changed import method

This commit is contained in:
Kevin Jahns
2014-08-14 20:33:55 +02:00
parent a637633a1c
commit eb541fd473
35 changed files with 101 additions and 55 deletions

View File

@@ -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);
})
}

View File

@@ -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);
})

View File

@@ -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);
})
}

View File

@@ -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);
```

View File

@@ -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

View File

@@ -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);
});

View File

@@ -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);
});