webrtc connector working

This commit is contained in:
Kevin Jahns
2015-07-14 22:39:01 +02:00
parent 6b153896dd
commit 9b3fe2f197
8 changed files with 37 additions and 12 deletions

View File

@@ -8,6 +8,7 @@
this._model = _model;
// Array of all the operation id's
this.idArray = idArray;
// Array of all the values
this.valArray = valArray;
this.eventHandler = new EventHandler( ops =>{
for (var i in ops) {

View File

@@ -104,7 +104,11 @@ class EventHandler {
// if property does not exist, return null
// if property is a type, return a promise
if (this.opContents[key] == null) {
return this.contents[key];
if (key == null) {
return copyObject(this.contents);
} else {
return this.contents[key];
}
} else {
let def = Promise.defer();
var oid = this.opContents[key];