Skip to content
This repository has been archived by the owner on Dec 23, 2018. It is now read-only.

Commit

Permalink
keep only promises
Browse files Browse the repository at this point in the history
  • Loading branch information
crcn committed Oct 23, 2015
1 parent e01d97d commit 64a4c14
Show file tree
Hide file tree
Showing 114 changed files with 133 additions and 4,338 deletions.
173 changes: 103 additions & 70 deletions dist/mesh.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mesh.min.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,14 @@ module.exports = {
*/

WritableStream : require('./stream/writable')
};

if (typeof window !== "undefined") {

module.exports.noConflict = function() {
delete window.mesh;
return module.exports;
};

window.mesh = module.exports
}
10 changes: 10 additions & 0 deletions internal/copy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = function(to) {
var fromObjects = Array.prototype.slice.call(arguments, 1);
for (var i = 0, n = fromObjects.length; i < n; i++) {
var fm = fromObjects[i];
for (var key in fm) {
to[key] = fm[key];
}
}
return to;
}
5 changes: 3 additions & 2 deletions internal/extend.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
var copy = require("./copy");

/**
* IE8+ compatible subclassing. See https://babeljs.io/docs/advanced/caveats/
Expand Down Expand Up @@ -31,12 +32,12 @@ module.exports = function(parent, child) {
this.constructor = c;
}

Object.assign(c, p); // copy static props
copy(c, p); // copy static props

ctor.prototype = p.prototype;
c.prototype = new ctor();

Object.assign(c.prototype, Object.assign.apply(Object, [{}].concat(props)));
copy(c.prototype, copy.apply(Object, [{}].concat(props)));

return c;
};
3 changes: 3 additions & 0 deletions internal/is-array.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function(target) {
return Object.prototype.toString.call(target) === "[object Array]";
};
23 changes: 0 additions & 23 deletions old/buffered.js

This file was deleted.

22 changes: 0 additions & 22 deletions old/cases/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions old/cases/database/index-test.js

This file was deleted.

184 changes: 0 additions & 184 deletions old/cases/database/index.js

This file was deleted.

28 changes: 0 additions & 28 deletions old/examples/api/README.md

This file was deleted.

Loading

0 comments on commit 64a4c14

Please sign in to comment.