c9-core/node_modules/kaefer/lib/util.js

11 wiersze
326 B
JavaScript

define(function(require, exports, module) {
exports.inherits = function(Child, Parent) {
Child.prototype = Object.create(Parent.prototype, { constructor: { value: Child }});
}
exports.uid = function() {
return (Date.now() + Math.random() * 0x100000000).toString(36) + (Math.random() * 0x100000000).toString(36);
}
});