OpenINF / openinf.github.io

Prefer that for-in loops should include an if statement JS-0051
Anti-pattern
Minor
1 occurrence in this check
Wrap the body of a for-in loop in an if statement with a hasOwnProperty guard
224			}
225
226			var d = document.createElement(tag)
227			for (var k in opt.attr)228				d.setAttribute(k, opt.attr[k])229
230			var p = document.querySelector(opt.append)
231			if (!p)