{"action":"created","comment":{"url":"https://api.github.com/repos/madrobby/zepto/pulls/comments/27925773","id":27925773,"diff_hunk":"@@ -849,7 +849,16 @@ var Zepto = (function() {\n       // arguments can be nodes, arrays of nodes, Zepto objects and HTML strings\n       var argType, nodes = $.map(arguments, function(arg) {\n             argType = type(arg)\n-            return argType == \"object\" || argType == \"array\" || arg == null ?\n+            if (argType == \"array\"){\n+              var arr = []","path":"src/zepto.js","position":6,"original_position":6,"commit_id":"e03ee72a95f1a9c720618ad00e280bddc2b24def","original_commit_id":"e03ee72a95f1a9c720618ad00e280bddc2b24def","user":{"login":"madrobby","id":3390,"avatar_url":"https://avatars.githubusercontent.com/u/3390?v=3","gravatar_id":"","url":"https://api.github.com/users/madrobby","html_url":"https://github.com/madrobby","followers_url":"https://api.github.com/users/madrobby/followers","following_url":"https://api.github.com/users/madrobby/following{/other_user}","gists_url":"https://api.github.com/users/madrobby/gists{/gist_id}","starred_url":"https://api.github.com/users/madrobby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madrobby/subscriptions","organizations_url":"https://api.github.com/users/madrobby/orgs","repos_url":"https://api.github.com/users/madrobby/repos","events_url":"https://api.github.com/users/madrobby/events{/privacy}","received_events_url":"https://api.github.com/users/madrobby/received_events","type":"User","site_admin":false},"body":"I think the `var arr` should be on the first line of the function, because it would get hoisted there anyway. (I'd leave the `arr = []` assignment in the block, tho.","created_at":"2015-04-07T22:06:18Z","updated_at":"2015-04-07T22:06:18Z","html_url":"https://github.com/madrobby/zepto/pull/1095#discussion_r27925773","pull_request_url":"https://api.github.com/repos/madrobby/zepto/pulls/1095","_links":{"self":{"href":"https://api.github.com/repos/madrobby/zepto/pulls/comments/27925773"},"html":{"href":"https://github.com/madrobby/zepto/pull/1095#discussion_r27925773"},"pull_request":{"href":"https://api.github.com/repos/madrobby/zepto/pulls/1095"}}},"pull_request":{"url":"https://api.github.com/repos/madrobby/zepto/pulls/1095","id":32762073,"html_url":"https://github.com/madrobby/zepto/pull/1095","diff_url":"https://github.com/madrobby/zepto/pull/1095.diff","patch_url":"https://github.com/madrobby/zepto/pull/1095.patch","issue_url":"https://api.github.com/repos/madrobby/zepto/issues/1095","number":1095,"state":"open","locked":false,"title":"Better support for array argument to `append`","user":{"login":"caricati","id":3439641,"avatar_url":"https://avatars.githubusercontent.com/u/3439641?v=3","gravatar_id":"","url":"https://api.github.com/users/caricati","html_url":"https://github.com/caricati","followers_url":"https://api.github.com/users/caricati/followers","following_url":"https://api.github.com/users/caricati/following{/other_user}","gists_url":"https://api.github.com/users/caricati/gists{/gist_id}","starred_url":"https://api.github.com/users/caricati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caricati/subscriptions","organizations_url":"https://api.github.com/users/caricati/orgs","repos_url":"https://api.github.com/users/caricati/repos","events_url":"https://api.github.com/users/caricati/events{/privacy}","received_events_url":"https://api.github.com/users/caricati/received_events","type":"User","site_admin":false},"body":"Corrections were made to support array in the $.append method.\r\n\r\nFixes #1075 ","created_at":"2015-04-07T13:11:34Z","updated_at":"2015-04-07T22:06:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4678059e6600ba270b3a27ef42574d0c9e6058a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/madrobby/zepto/pulls/1095/commits","review_comments_url":"https://api.github.com/repos/madrobby/zepto/pulls/1095/comments","review_comment_url":"https://api.github.com/repos/madrobby/zepto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/madrobby/zepto/issues/1095/comments","statuses_url":"https://api.github.com/repos/madrobby/zepto/statuses/e03ee72a95f1a9c720618ad00e280bddc2b24def","head":{"label":"caricati:master","ref":"master","sha":"e03ee72a95f1a9c720618ad00e280bddc2b24def","user":{"login":"caricati","id":3439641,"avatar_url":"https://avatars.githubusercontent.com/u/3439641?v=3","gravatar_id":"","url":"https://api.github.com/users/caricati","html_url":"https://github.com/caricati","followers_url":"https://api.github.com/users/caricati/followers","following_url":"https://api.github.com/users/caricati/following{/other_user}","gists_url":"https://api.github.com/users/caricati/gists{/gist_id}","starred_url":"https://api.github.com/users/caricati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caricati/subscriptions","organizations_url":"https://api.github.com/users/caricati/orgs","repos_url":"https://api.github.com/users/caricati/repos","events_url":"https://api.github.com/users/caricati/events{/privacy}","received_events_url":"https://api.github.com/users/caricati/received_events","type":"User","site_admin":false},"repo":{"id":33511529,"name":"zepto","full_name":"caricati/zepto","owner":{"login":"caricati","id":3439641,"avatar_url":"https://avatars.githubusercontent.com/u/3439641?v=3","gravatar_id":"","url":"https://api.github.com/users/caricati","html_url":"https://github.com/caricati","followers_url":"https://api.github.com/users/caricati/followers","following_url":"https://api.github.com/users/caricati/following{/other_user}","gists_url":"https://api.github.com/users/caricati/gists{/gist_id}","starred_url":"https://api.github.com/users/caricati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caricati/subscriptions","organizations_url":"https://api.github.com/users/caricati/orgs","repos_url":"https://api.github.com/users/caricati/repos","events_url":"https://api.github.com/users/caricati/events{/privacy}","received_events_url":"https://api.github.com/users/caricati/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caricati/zepto","description":"Zepto.js is a minimalist JavaScript library for modern browsers, with a jQuery-compatible API","fork":true,"url":"https://api.github.com/repos/caricati/zepto","forks_url":"https://api.github.com/repos/caricati/zepto/forks","keys_url":"https://api.github.com/repos/caricati/zepto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caricati/zepto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caricati/zepto/teams","hooks_url":"https://api.github.com/repos/caricati/zepto/hooks","issue_events_url":"https://api.github.com/repos/caricati/zepto/issues/events{/number}","events_url":"https://api.github.com/repos/caricati/zepto/events","assignees_url":"https://api.github.com/repos/caricati/zepto/assignees{/user}","branches_url":"https://api.github.com/repos/caricati/zepto/branches{/branch}","tags_url":"https://api.github.com/repos/caricati/zepto/tags","blobs_url":"https://api.github.com/repos/caricati/zepto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caricati/zepto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caricati/zepto/git/refs{/sha}","trees_url":"https://api.github.com/repos/caricati/zepto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caricati/zepto/statuses/{sha}","languages_url":"https://api.github.com/repos/caricati/zepto/languages","stargazers_url":"https://api.github.com/repos/caricati/zepto/stargazers","contributors_url":"https://api.github.com/repos/caricati/zepto/contributors","subscribers_url":"https://api.github.com/repos/caricati/zepto/subscribers","subscription_url":"https://api.github.com/repos/caricati/zepto/subscription","commits_url":"https://api.github.com/repos/caricati/zepto/commits{/sha}","git_commits_url":"https://api.github.com/repos/caricati/zepto/git/commits{/sha}","comments_url":"https://api.github.com/repos/caricati/zepto/comments{/number}","issue_comment_url":"https://api.github.com/repos/caricati/zepto/issues/comments{/number}","contents_url":"https://api.github.com/repos/caricati/zepto/contents/{+path}","compare_url":"https://api.github.com/repos/caricati/zepto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caricati/zepto/merges","archive_url":"https://api.github.com/repos/caricati/zepto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caricati/zepto/downloads","issues_url":"https://api.github.com/repos/caricati/zepto/issues{/number}","pulls_url":"https://api.github.com/repos/caricati/zepto/pulls{/number}","milestones_url":"https://api.github.com/repos/caricati/zepto/milestones{/number}","notifications_url":"https://api.github.com/repos/caricati/zepto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caricati/zepto/labels{/name}","releases_url":"https://api.github.com/repos/caricati/zepto/releases{/id}","created_at":"2015-04-06T23:39:44Z","updated_at":"2015-04-07T18:32:04Z","pushed_at":"2015-04-07T18:32:02Z","git_url":"git://github.com/caricati/zepto.git","ssh_url":"git@github.com:caricati/zepto.git","clone_url":"https://github.com/caricati/zepto.git","svn_url":"https://github.com/caricati/zepto","homepage":"http://zeptojs.com","size":20725,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"madrobby:master","ref":"master","sha":"c454cfeaf9320f1eb89248a585b42acfc8aeedab","user":{"login":"madrobby","id":3390,"avatar_url":"https://avatars.githubusercontent.com/u/3390?v=3","gravatar_id":"","url":"https://api.github.com/users/madrobby","html_url":"https://github.com/madrobby","followers_url":"https://api.github.com/users/madrobby/followers","following_url":"https://api.github.com/users/madrobby/following{/other_user}","gists_url":"https://api.github.com/users/madrobby/gists{/gist_id}","starred_url":"https://api.github.com/users/madrobby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madrobby/subscriptions","organizations_url":"https://api.github.com/users/madrobby/orgs","repos_url":"https://api.github.com/users/madrobby/repos","events_url":"https://api.github.com/users/madrobby/events{/privacy}","received_events_url":"https://api.github.com/users/madrobby/received_events","type":"User","site_admin":false},"repo":{"id":924303,"name":"zepto","full_name":"madrobby/zepto","owner":{"login":"madrobby","id":3390,"avatar_url":"https://avatars.githubusercontent.com/u/3390?v=3","gravatar_id":"","url":"https://api.github.com/users/madrobby","html_url":"https://github.com/madrobby","followers_url":"https://api.github.com/users/madrobby/followers","following_url":"https://api.github.com/users/madrobby/following{/other_user}","gists_url":"https://api.github.com/users/madrobby/gists{/gist_id}","starred_url":"https://api.github.com/users/madrobby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madrobby/subscriptions","organizations_url":"https://api.github.com/users/madrobby/orgs","repos_url":"https://api.github.com/users/madrobby/repos","events_url":"https://api.github.com/users/madrobby/events{/privacy}","received_events_url":"https://api.github.com/users/madrobby/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/madrobby/zepto","description":"Zepto.js is a minimalist JavaScript library for modern browsers, with a jQuery-compatible API","fork":false,"url":"https://api.github.com/repos/madrobby/zepto","forks_url":"https://api.github.com/repos/madrobby/zepto/forks","keys_url":"https://api.github.com/repos/madrobby/zepto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madrobby/zepto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madrobby/zepto/teams","hooks_url":"https://api.github.com/repos/madrobby/zepto/hooks","issue_events_url":"https://api.github.com/repos/madrobby/zepto/issues/events{/number}","events_url":"https://api.github.com/repos/madrobby/zepto/events","assignees_url":"https://api.github.com/repos/madrobby/zepto/assignees{/user}","branches_url":"https://api.github.com/repos/madrobby/zepto/branches{/branch}","tags_url":"https://api.github.com/repos/madrobby/zepto/tags","blobs_url":"https://api.github.com/repos/madrobby/zepto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madrobby/zepto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madrobby/zepto/git/refs{/sha}","trees_url":"https://api.github.com/repos/madrobby/zepto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madrobby/zepto/statuses/{sha}","languages_url":"https://api.github.com/repos/madrobby/zepto/languages","stargazers_url":"https://api.github.com/repos/madrobby/zepto/stargazers","contributors_url":"https://api.github.com/repos/madrobby/zepto/contributors","subscribers_url":"https://api.github.com/repos/madrobby/zepto/subscribers","subscription_url":"https://api.github.com/repos/madrobby/zepto/subscription","commits_url":"https://api.github.com/repos/madrobby/zepto/commits{/sha}","git_commits_url":"https://api.github.com/repos/madrobby/zepto/git/commits{/sha}","comments_url":"https://api.github.com/repos/madrobby/zepto/comments{/number}","issue_comment_url":"https://api.github.com/repos/madrobby/zepto/issues/comments{/number}","contents_url":"https://api.github.com/repos/madrobby/zepto/contents/{+path}","compare_url":"https://api.github.com/repos/madrobby/zepto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madrobby/zepto/merges","archive_url":"https://api.github.com/repos/madrobby/zepto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madrobby/zepto/downloads","issues_url":"https://api.github.com/repos/madrobby/zepto/issues{/number}","pulls_url":"https://api.github.com/repos/madrobby/zepto/pulls{/number}","milestones_url":"https://api.github.com/repos/madrobby/zepto/milestones{/number}","notifications_url":"https://api.github.com/repos/madrobby/zepto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madrobby/zepto/labels{/name}","releases_url":"https://api.github.com/repos/madrobby/zepto/releases{/id}","created_at":"2010-09-20T07:57:57Z","updated_at":"2015-04-07T20:39:25Z","pushed_at":"2015-04-07T18:32:06Z","git_url":"git://github.com/madrobby/zepto.git","ssh_url":"git@github.com:madrobby/zepto.git","clone_url":"https://github.com/madrobby/zepto.git","svn_url":"https://github.com/madrobby/zepto","homepage":"http://zeptojs.com","size":20725,"stargazers_count":8354,"watchers_count":8354,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1900,"mirror_url":null,"open_issues_count":76,"forks":1900,"open_issues":76,"watchers":8354,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/madrobby/zepto/pulls/1095"},"html":{"href":"https://github.com/madrobby/zepto/pull/1095"},"issue":{"href":"https://api.github.com/repos/madrobby/zepto/issues/1095"},"comments":{"href":"https://api.github.com/repos/madrobby/zepto/issues/1095/comments"},"review_comments":{"href":"https://api.github.com/repos/madrobby/zepto/pulls/1095/comments"},"review_comment":{"href":"https://api.github.com/repos/madrobby/zepto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/madrobby/zepto/pulls/1095/commits"},"statuses":{"href":"https://api.github.com/repos/madrobby/zepto/statuses/e03ee72a95f1a9c720618ad00e280bddc2b24def"}}}}