kopia lustrzana https://github.com/c9/core
11 wiersze
326 B
JavaScript
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);
|
|
}
|
|
|
|
}); |