Skip to content

Commit

Permalink
Fixed bug where passing nothing in returned an empty array instead of…
Browse files Browse the repository at this point in the history
… an object.
  • Loading branch information
Ian Maffett committed Jan 13, 2012
1 parent da80941 commit 2b6549d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion jq.mobi.js
Expand Up @@ -58,7 +58,7 @@ var jq = (function () {
var $jqm = function (toSelect, what) {
var elements = [];
this.length=0;
if (!toSelect) return emptyArray;
if (!toSelect) return this;

else if (toSelect instanceof $jqm)
return toSelect;
Expand Down
22 changes: 11 additions & 11 deletions jq.mobi.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2b6549d

Please sign in to comment.