MCPcopy Index your code
hub / github.com/totaljs/framework / notify

Function notify

nosql.js:256–270  ·  view source on GitHub ↗
(instance, type)

Source from the content-addressed store, hash-verified

254 }
255
256 function notify(instance, type) {
257 var obj = {};
258 obj.type = type;
259 obj.name = instance.name;
260 obj.time = Date.now();
261 obj.t = instance instanceof Table;
262
263 if (arguments.length > 2) {
264 obj.arg = [];
265 for (var i = 2; i < arguments.length; i++)
266 obj.arg.push(arguments[i]);
267 }
268 setImmediate(send2, obj, false);
269 return obj;
270 }
271
272 function send2(obj, callback) {
273 CMD.TYPE = obj.type;

Callers 1

nosql.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected