Use Douglas Crockford's mkws.objectInheritingFrom rather than the
authorMike Taylor <mike@indexdata.com>
Tue, 8 Apr 2014 11:48:12 +0000 (12:48 +0100)
committerMike Taylor <mike@indexdata.com>
Tue, 8 Apr 2014 11:48:12 +0000 (12:48 +0100)
built-in Object.create, which is not available in IE8.

src/mkws-widgets.js

index b5d1373..22b9820 100644 (file)
@@ -10,7 +10,7 @@ function widget($, team, type, node) {
        team: team,
        type: type,
        node: node,
-       config: Object.create(team.config())
+       config: mkws.objectInheritingFrom(team.config())
     };
 
     function log(s) {