acha-framework
Version:
is a modular framework on both client (angular.js) and server (node.js) side, it provides security, orm, ioc, obfuscation and ...
19 lines • 581 B
JavaScript
(function ($, angular, underscore, window, document, undefined) {
'use strict';
angular.module('frontend.services').run([
'$rootScope',
function ($rootScope) {
Object.defineProperty($rootScope.constructor.prototype, '$console', {
get: function () {
return console;
}
});
$rootScope.constructor.prototype.$timeout = function (func, timeout) {
var ctx = this;
setTimeout(function () {
ctx.$apply.call(ctx, func);
}, timeout || 0);
};
}
]);
}(jQuery, angular, _, window, document));