Skip to content

Commit

Permalink
$: If selector is empty, return null (instead of error)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaVerou committed Nov 28, 2016
1 parent 52b8429 commit 0534a4a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bliss.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function type(obj) {
}

var $ = self.Bliss = extend(function(expr, context) {
if (arguments.length == 2 && !context) {
if (arguments.length == 2 && !context || !expr) {
return null;
}

Expand Down
Loading

0 comments on commit 0534a4a

Please sign in to comment.