Simple Seal class

This commit is contained in:
Tony Garnock-Jones 2016-02-06 07:42:16 -05:00
parent 85c43510a8
commit a0670ec3a3
2 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,7 @@ copyKeys(['__', '_$', '$Capture', '$Special',
module.exports.Route);
module.exports.DemandMatcher = require('./demand-matcher.js').DemandMatcher;
module.exports.Seal = require('./seal.js').Seal;
// module.exports.DOM = require("./dom-driver.js");
module.exports.JQuery = require("./jquery-driver.js");

10
js/src/seal.js Normal file
View File

@ -0,0 +1,10 @@
function Seal(contents) {
this.sealContents = contents;
}
Seal.prototype.equals = function (other) {
if (!(other instanceof Seal)) return false;
return Immutable.is(this.sealContents, other.sealContents);
};
module.exports.Seal = Seal;