}
return d.getAttributeNS(ns, name) || d.getAttribute(ns+":"+name) || d.getAttribute(name) || d[name];
+ },
+ vis : '',
+ toggle : function()
+ {
+ this.vis = this.vis == '' ? 'none : '';
+ var vis = this.vis;
+ Array.prototype.slice.call(
+ document.getElementsByClassName('expandable')
+ ).forEach(function(e) {
+ if (!e.className.match(/notInherited/)) { e.style.display= vis; }}
+ )
}
-
}