snabbdom-selector
Advanced tools
Comparing version 0.3.2 to 0.4.0
@@ -0,1 +1,10 @@ | ||
# v0.4.0 (2016-05-21) | ||
## Features | ||
- **atts:** check for id in attrs module | ||
([0d471e74](https://github.com/git+https://github.com/tylors/snabbdom-selector.git/commits/0d471e74d3a1fd95374138cc75a75db9c7941c85)) | ||
# v0.3.2 (2015-12-18) | ||
@@ -2,0 +11,0 @@ |
@@ -19,2 +19,3 @@ 'use strict'; | ||
if (!vNode.data) { | ||
@@ -28,2 +29,3 @@ return cn; | ||
if (dataClass) { | ||
@@ -30,0 +32,0 @@ var c = Object.keys(vNode.data.class).filter(function (cl) { |
@@ -43,3 +43,3 @@ 'use strict'; | ||
traverse(wrappedVNode, function (node) { | ||
var result = undefined; | ||
var result = void 0; | ||
if (node.data && node.data.vnode) { | ||
@@ -46,0 +46,0 @@ result = selector(node.data.vnode); |
@@ -34,2 +34,4 @@ 'use strict'; | ||
return vNode.data.props.id; | ||
} else if (vNode.data && vNode.data.attrs && vNode.data.attrs.id) { | ||
return vNode.data.attrs.id; | ||
} | ||
@@ -36,0 +38,0 @@ return (0, _selectorParser2.default)(vNode.sel).id; |
@@ -20,3 +20,3 @@ 'use strict'; | ||
var tagName = undefined; | ||
var tagName = void 0; | ||
var id = ''; | ||
@@ -31,5 +31,5 @@ var classes = []; | ||
var part = undefined; | ||
var type = undefined; | ||
var i = undefined; | ||
var part = void 0; | ||
var type = void 0; | ||
var i = void 0; | ||
@@ -36,0 +36,0 @@ for (i = 0; i < tagParts.length; i++) { |
{ | ||
"name": "snabbdom-selector", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"description": "Snabbdom CSS-Selector", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -19,2 +19,5 @@ import cssauron from 'cssauron' | ||
} | ||
else if (vNode.data && vNode.data.attrs && vNode.data.attrs.id) { | ||
return vNode.data.attrs.id | ||
} | ||
return selectorParser(vNode.sel).id | ||
@@ -21,0 +24,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29924
486