Simple Seal class
This commit is contained in:
parent
85c43510a8
commit
a0670ec3a3
|
@ -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");
|
||||
|
|
|
@ -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;
|
Loading…
Reference in New Issue