Skip to content

Commit 2ca7541

Browse files
committed
Update standard
1 parent a8041dc commit 2ca7541

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ShadyDOMLazyTree.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function lightDOM (element) {
4141
*
4242
* See https://github.com/spicyj/innerhtml-vs-createelement-vs-clonenode.
4343
*/
44-
var enableLazy = typeof document !== 'undefined' && typeof document.documentMode === 'number' || typeof navigator !== 'undefined' && typeof navigator.userAgent === 'string' && /\bEdge\/\d/.test(navigator.userAgent)
44+
var enableLazy = (typeof document !== 'undefined' && typeof document.documentMode === 'number') || (typeof navigator !== 'undefined' && typeof navigator.userAgent === 'string' && /\bEdge\/\d/.test(navigator.userAgent))
4545

4646
function insertTreeChildren (tree) {
4747
if (!enableLazy) {
@@ -68,7 +68,7 @@ var insertTreeBefore = createMicrosoftUnsafeLocalFunction(function (parentNode,
6868
// this level. Also, some <object> plugins (like Flash Player) will read
6969
// <param> nodes immediately upon insertion into the DOM, so <object>
7070
// must also be populated prior to insertion into the DOM.
71-
if (tree.node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE || tree.node.nodeType === ELEMENT_NODE_TYPE && tree.node.nodeName.toLowerCase() === 'object' && (tree.node.namespaceURI == null || tree.node.namespaceURI === DOMNamespaces.html)) {
71+
if (tree.node.nodeType === DOCUMENT_FRAGMENT_NODE_TYPE || (tree.node.nodeType === ELEMENT_NODE_TYPE && tree.node.nodeName.toLowerCase() === 'object' && (tree.node.namespaceURI == null || tree.node.namespaceURI === DOMNamespaces.html))) {
7272
insertTreeChildren(tree)
7373
parentNode.insertBefore(tree.node, referenceNode)
7474
} else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"react": "^15.4.0",
4747
"react-addons-test-utils": "^15.4.0",
4848
"react-dom": "^15.4.0",
49-
"standard": "^8.1.0",
49+
"standard": "^9.0.2",
5050
"tape": "^4.4.0",
5151
"vulcanize": "^1.14.1",
5252
"zuul": "^3.9.0"

0 commit comments

Comments
 (0)