Skip to content

Commit

Permalink
Micro optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
vovkasm committed Dec 15, 2016
1 parent 6c6ec85 commit e1d11a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stylesheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Selector {
matchContext (name, context) {
if (this.name !== name) return false
if (this.order === 1) return true // simple rule
if (Array.isArray(context)) {
if (context !== undefined) {
let j = this.order - 1
let i = context.length - 1
const chains = this.chains
Expand Down

0 comments on commit e1d11a8

Please sign in to comment.