2015-02-10 23:41:24 +04:00

11 lines
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);
}
});