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

src/mkws-team.js

index a5a2d03..ee18f1b 100644 (file)
@@ -27,7 +27,7 @@ function team($, teamName) {
     };
     var m_paz; // will be initialised below
     var m_template = {};
-    var m_config = Object.create(mkws.config);
+    var m_config = mkws.objectInheritingFrom(mkws.config);
 
     that.toString = function() { return '[Team ' + teamName + ']'; };