| Index: chrome/test/data/third_party/spaceport/js/util/create.js
|
| diff --git a/chrome/test/data/third_party/spaceport/js/util/create.js b/chrome/test/data/third_party/spaceport/js/util/create.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1dd8c22de000a3752f42d42e35a4034439eb5414
|
| --- /dev/null
|
| +++ b/chrome/test/data/third_party/spaceport/js/util/create.js
|
| @@ -0,0 +1,14 @@
|
| +define([ ], function () {
|
| + // Simplified Object.create shim for easy prototypal inheritence.
|
| + if (Object.create) {
|
| + return function create(proto) {
|
| + return Object.create(proto);
|
| + };
|
| + } else {
|
| + return function create(proto) {
|
| + function TempClass() { }
|
| + TempClass.prototype = proto;
|
| + return new TempClass();
|
| + };
|
| + }
|
| +});
|
|
|