fixing Polymer elements

This commit is contained in:
DadaMonad
2015-01-16 23:17:19 +00:00
parent bab4bcc94b
commit 02d0ace241
12 changed files with 27 additions and 25 deletions

View File

@@ -2,4 +2,6 @@
Here you find some (hopefully) usefull examples on how to use Yatta!
Please note, that the XMPP Connector is the best supported Connector at the moment.
Please note, that the XMPP Connector is the best supported Connector at the moment.
Note: currently only the XMPP stuff is supported.

View File

@@ -30,8 +30,8 @@ var yatta, yattaHandler;
For now, you can use my API key.
*/
connector = new XMPPConnector();
connector = new XMPPConnector("testy-xmpp-json");
connector.debug = true
/**
### Yatta
yatta is the shared json object. If you change something on this object,

View File

@@ -5,15 +5,15 @@ setTimeout(function(){
x.yatta.val("stuff",{otherstuff:{nostuff:"this is no stuff"}})
setTimeout(function(){
var res = x.yatta.val("stuff");
if(!(x.nostuff.val() === "this is no stuff")){
console.log("Deep inherit doesn't work")
if(!(x.nostuff === "this is no stuff")){
console.log("Deep inherit doesn't work!")
}
window.y_stuff_property.val = {nostuff: "this is also no stuff"};
setTimeout(function(){
if(!(x.nostuff.val() === "this is also no stuff")){
if(!(x.nostuff === "this is also no stuff")){
console.log("Element val overwrite doesn't work")
}
console.log("res");
console.log("Everything is fine :)");
},500)
},500);
},3000)

View File

@@ -4,7 +4,7 @@
<polymer-element name="yatta-test" attributes="yatta connector stuff">
<template>
<xmpp-connector id="connector" connector={{connector}}></xmpp-connector>
<xmpp-connector id="connector" connector={{connector}} room="testy-xmpp-polymer"></xmpp-connector>
<yatta-element connector={{connector}} val={{yatta}}>
<yatta-property name="slider" val={{slider}}>
</yatta-property>