Page MenuHomeSealhub

context.js
No OneTemporary

context.js

var Immutable = require("immutable");
function Context (timestamp, ip, user_id) {
this._arguments = arguments;
if (user_id === undefined) {
user_id = null;
}
if (timestamp === undefined) {
var d = new Date();
timestamp = d.getTime();
}
var ret = Immutable.fromJS({
timestamp: timestamp,
ip: ip || null,
user_id: user_id
});
return ret;
}
Context.prototype = new function(){
this._get_constructor_arguments = function(){
return this._arguments;
}
}
module.exports = Context;

File Metadata

Mime Type
text/plain
Expires
Wed, Aug 13, 18:01 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
870319
Default Alt Text
context.js (503 B)

Event Timeline