summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/proxyWorker.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/proxyWorker.js b/src/proxyWorker.js
index 50e54c1d..a5115893 100644
--- a/src/proxyWorker.js
+++ b/src/proxyWorker.js
@@ -1,3 +1,7 @@
+function PropertyBag() {
+ this.addProperty = function(){};
+ this.removeProperty = function(){};
+};
function EventListener() {
this.listeners = {};
@@ -85,6 +89,7 @@ document.createElement = function document_createElement(what) {
right: canvas.boundingClientRect.right
};
};
+ canvas.style = new PropertyBag();
return canvas;
}
default: throw 'document.createElement ' + what;