Skip to content

Commit

Permalink
[changed] run local tests before nesting or pseudo selectors
Browse files Browse the repository at this point in the history
Slight optimization allows a selector to fail faster in some cases
  • Loading branch information
jquense committed Dec 19, 2015
1 parent 373913c commit 40a6df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function create(options = {}) {
}

return fns.reduce((current, next = ()=> true)=> {
return (...args)=> next(...args) && current(...args)
return (...args)=> current(...args) && next(...args)
})
}

Expand Down

0 comments on commit 40a6df8

Please sign in to comment.