mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-22 16:24:48 -06:00
fa9ae9437c
The gitbook install has been incredibly flaky due to it's dependency on npm. This commit simply vendors the node_modules so that each time we build the site the process doesn't have to re-run gitbook install. Signed-off-by: Torin Sandall <torinsandall@gmail.com>
21 lines
443 B
JavaScript
21 lines
443 B
JavaScript
// DOM-Level-1-compliant structure
|
|
var NodePrototype = require('./node');
|
|
var ElementPrototype = module.exports = Object.create(NodePrototype);
|
|
|
|
var domLvl1 = {
|
|
tagName: "name"
|
|
};
|
|
|
|
Object.keys(domLvl1).forEach(function(key) {
|
|
var shorthand = domLvl1[key];
|
|
Object.defineProperty(ElementPrototype, key, {
|
|
get: function() {
|
|
return this[shorthand] || null;
|
|
},
|
|
set: function(val) {
|
|
this[shorthand] = val;
|
|
return val;
|
|
}
|
|
});
|
|
});
|