File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ function byId ( id ) {
2+ return document . getElementById ( id ) ;
3+ }
4+
15/**
26 * @param {number } depth
37 * @return {string }
@@ -97,14 +101,14 @@ if (!("__defineGetter__" in {})) {
97101 errors . push ( "Object.prototype.__defineGetter__ isn’t supported" ) ;
98102}
99103if ( errors . length ) {
100- document . getElementById ( "message" ) . innerHTML = errors . join ( "<br>" ) ;
104+ byId ( "message" ) . innerHTML = errors . join ( "<br>" ) ;
101105 document . body . className = "error" ;
102106 throw errors . join ( "\n\n" ) ;
103107}
104108
105- var style = document . getElementById ( "style" ) ;
106- var output = document . getElementById ( "output" ) ;
107- var serialized = document . getElementById ( "serialized" ) ;
109+ var style = byId ( "style" ) ;
110+ var output = byId ( "output" ) ;
111+ var serialized = byId ( "serialized" ) ;
108112
109113function outputUpdated ( ) {
110114 var value = style . value ;
You can’t perform that action at this time.
0 commit comments