Yep. Try $([])
. The reason $()
doesn't work is because that jQuery expects a context, and without any supplied, will default to document
as the context. Many things depend on this assumption being true, so changing $()
to mean "give me the empty set" would be problematic at best.