Comparing version 0.6.4-rc4 to 0.6.5
@@ -19,14 +19,28 @@ "use strict"; | ||
}); | ||
var _events = require("events"); | ||
var $core = exports.$core = function $core(_, _object) { | ||
_.hooks = (0, _utils.initHooks)(_); | ||
_.hooks._hooks = { _: [_utils._hooks] }; | ||
_.events = new _events.EventEmitter(); | ||
_.events.on("$use", function (_object) { | ||
return (0, _utils.$use)(_, _object); | ||
}); | ||
_.events.on("$get", function (_object) { | ||
return (0, _utils.$get)(_, _object); | ||
}); | ||
_.events.on("$set", function (_object) { | ||
return (0, _utils.$set)(_, _object); | ||
}); | ||
_.$use = function (_object) { | ||
return (0, _utils.$use)(_, _object); | ||
return _.events.emit("$use", _object); | ||
}; | ||
_.$get = function (_object) { | ||
return (0, _utils.$get)(_, _object); | ||
return _.events.emit("$get", _object); | ||
}; | ||
_.$set = function (_object) { | ||
return (0, _utils.$set)(_, _object); | ||
return _.events.emit("$set", _object); | ||
}; | ||
_.$use({ _hooks: { _mount: _utils._mount } }); | ||
@@ -33,0 +47,0 @@ _.$use(_object); |
{ | ||
"name": "menhera", | ||
"version": "0.6.4-rc4", | ||
"version": "0.6.5", | ||
"main": "dist", | ||
@@ -5,0 +5,0 @@ "files": [ |
24084
622