Skip to content

Commit 0534a4a

Browse files
committed
$: If selector is empty, return null (instead of error)
1 parent 52b8429 commit 0534a4a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bliss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function type(obj) {
8888
}
8989

9090
var $ = self.Bliss = extend(function(expr, context) {
91-
if (arguments.length == 2 && !context) {
91+
if (arguments.length == 2 && !context || !expr) {
9292
return null;
9393
}
9494

0 commit comments

Comments
 (0)