{"action":"opened","number":994,"pull_request":{"url":"https://api.github.com/repos/RubyLouvre/avalon/pulls/994","id":42891878,"html_url":"https://github.com/RubyLouvre/avalon/pull/994","diff_url":"https://github.com/RubyLouvre/avalon/pull/994.diff","patch_url":"https://github.com/RubyLouvre/avalon/pull/994.patch","issue_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/994","number":994,"state":"open","locked":false,"title":"解决私有化avalon对象后，filter实效问题","user":{"login":"anrip","id":8297757,"avatar_url":"https://avatars.githubusercontent.com/u/8297757?v=3","gravatar_id":"","url":"https://api.github.com/users/anrip","html_url":"https://github.com/anrip","followers_url":"https://api.github.com/users/anrip/followers","following_url":"https://api.github.com/users/anrip/following{/other_user}","gists_url":"https://api.github.com/users/anrip/gists{/gist_id}","starred_url":"https://api.github.com/users/anrip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anrip/subscriptions","organizations_url":"https://api.github.com/users/anrip/orgs","repos_url":"https://api.github.com/users/anrip/repos","events_url":"https://api.github.com/users/anrip/events{/privacy}","received_events_url":"https://api.github.com/users/anrip/received_events","type":"User","site_admin":false},"body":"目前，avalon默认注册为window.avalon对象（无论是否使用cmd和and加载均如此），所以filter可以正常使用。\r\n\r\n如果我们avalon初始化代码为 var avalon = xxx ;即取消其默认全局注册，此时，filter将出现问题。原因如下：编译系统使用 return avalon.filters.$filter 代码，需要引用window.avalon。","created_at":"2015-08-20T05:04:27Z","updated_at":"2015-08-20T05:04:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RubyLouvre/avalon/pulls/994/commits","review_comments_url":"https://api.github.com/repos/RubyLouvre/avalon/pulls/994/comments","review_comment_url":"https://api.github.com/repos/RubyLouvre/avalon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/994/comments","statuses_url":"https://api.github.com/repos/RubyLouvre/avalon/statuses/5913111475bc47ce043f09bfecc6e7b9c8e590a8","head":{"label":"anrip:master","ref":"master","sha":"5913111475bc47ce043f09bfecc6e7b9c8e590a8","user":{"login":"anrip","id":8297757,"avatar_url":"https://avatars.githubusercontent.com/u/8297757?v=3","gravatar_id":"","url":"https://api.github.com/users/anrip","html_url":"https://github.com/anrip","followers_url":"https://api.github.com/users/anrip/followers","following_url":"https://api.github.com/users/anrip/following{/other_user}","gists_url":"https://api.github.com/users/anrip/gists{/gist_id}","starred_url":"https://api.github.com/users/anrip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anrip/subscriptions","organizations_url":"https://api.github.com/users/anrip/orgs","repos_url":"https://api.github.com/users/anrip/repos","events_url":"https://api.github.com/users/anrip/events{/privacy}","received_events_url":"https://api.github.com/users/anrip/received_events","type":"User","site_admin":false},"repo":{"id":41074740,"name":"avalon","full_name":"anrip/avalon","owner":{"login":"anrip","id":8297757,"avatar_url":"https://avatars.githubusercontent.com/u/8297757?v=3","gravatar_id":"","url":"https://api.github.com/users/anrip","html_url":"https://github.com/anrip","followers_url":"https://api.github.com/users/anrip/followers","following_url":"https://api.github.com/users/anrip/following{/other_user}","gists_url":"https://api.github.com/users/anrip/gists{/gist_id}","starred_url":"https://api.github.com/users/anrip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anrip/subscriptions","organizations_url":"https://api.github.com/users/anrip/orgs","repos_url":"https://api.github.com/users/anrip/repos","events_url":"https://api.github.com/users/anrip/events{/privacy}","received_events_url":"https://api.github.com/users/anrip/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anrip/avalon","description":"A lightweight,high-performance and easy-to-learn javascript MVVM framework","fork":true,"url":"https://api.github.com/repos/anrip/avalon","forks_url":"https://api.github.com/repos/anrip/avalon/forks","keys_url":"https://api.github.com/repos/anrip/avalon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anrip/avalon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anrip/avalon/teams","hooks_url":"https://api.github.com/repos/anrip/avalon/hooks","issue_events_url":"https://api.github.com/repos/anrip/avalon/issues/events{/number}","events_url":"https://api.github.com/repos/anrip/avalon/events","assignees_url":"https://api.github.com/repos/anrip/avalon/assignees{/user}","branches_url":"https://api.github.com/repos/anrip/avalon/branches{/branch}","tags_url":"https://api.github.com/repos/anrip/avalon/tags","blobs_url":"https://api.github.com/repos/anrip/avalon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anrip/avalon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anrip/avalon/git/refs{/sha}","trees_url":"https://api.github.com/repos/anrip/avalon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anrip/avalon/statuses/{sha}","languages_url":"https://api.github.com/repos/anrip/avalon/languages","stargazers_url":"https://api.github.com/repos/anrip/avalon/stargazers","contributors_url":"https://api.github.com/repos/anrip/avalon/contributors","subscribers_url":"https://api.github.com/repos/anrip/avalon/subscribers","subscription_url":"https://api.github.com/repos/anrip/avalon/subscription","commits_url":"https://api.github.com/repos/anrip/avalon/commits{/sha}","git_commits_url":"https://api.github.com/repos/anrip/avalon/git/commits{/sha}","comments_url":"https://api.github.com/repos/anrip/avalon/comments{/number}","issue_comment_url":"https://api.github.com/repos/anrip/avalon/issues/comments{/number}","contents_url":"https://api.github.com/repos/anrip/avalon/contents/{+path}","compare_url":"https://api.github.com/repos/anrip/avalon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anrip/avalon/merges","archive_url":"https://api.github.com/repos/anrip/avalon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anrip/avalon/downloads","issues_url":"https://api.github.com/repos/anrip/avalon/issues{/number}","pulls_url":"https://api.github.com/repos/anrip/avalon/pulls{/number}","milestones_url":"https://api.github.com/repos/anrip/avalon/milestones{/number}","notifications_url":"https://api.github.com/repos/anrip/avalon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anrip/avalon/labels{/name}","releases_url":"https://api.github.com/repos/anrip/avalon/releases{/id}","created_at":"2015-08-20T04:06:15Z","updated_at":"2015-08-20T04:06:16Z","pushed_at":"2015-08-20T04:58:29Z","git_url":"git://github.com/anrip/avalon.git","ssh_url":"git@github.com:anrip/avalon.git","clone_url":"https://github.com/anrip/avalon.git","svn_url":"https://github.com/anrip/avalon","homepage":"http://avalonjs.github.io/","size":44617,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"RubyLouvre:master","ref":"master","sha":"a88041ac7e48694ebe2caaf81bda3baf8664dc89","user":{"login":"RubyLouvre","id":190846,"avatar_url":"https://avatars.githubusercontent.com/u/190846?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyLouvre","html_url":"https://github.com/RubyLouvre","followers_url":"https://api.github.com/users/RubyLouvre/followers","following_url":"https://api.github.com/users/RubyLouvre/following{/other_user}","gists_url":"https://api.github.com/users/RubyLouvre/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyLouvre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyLouvre/subscriptions","organizations_url":"https://api.github.com/users/RubyLouvre/orgs","repos_url":"https://api.github.com/users/RubyLouvre/repos","events_url":"https://api.github.com/users/RubyLouvre/events{/privacy}","received_events_url":"https://api.github.com/users/RubyLouvre/received_events","type":"User","site_admin":false},"repo":{"id":10579398,"name":"avalon","full_name":"RubyLouvre/avalon","owner":{"login":"RubyLouvre","id":190846,"avatar_url":"https://avatars.githubusercontent.com/u/190846?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyLouvre","html_url":"https://github.com/RubyLouvre","followers_url":"https://api.github.com/users/RubyLouvre/followers","following_url":"https://api.github.com/users/RubyLouvre/following{/other_user}","gists_url":"https://api.github.com/users/RubyLouvre/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyLouvre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyLouvre/subscriptions","organizations_url":"https://api.github.com/users/RubyLouvre/orgs","repos_url":"https://api.github.com/users/RubyLouvre/repos","events_url":"https://api.github.com/users/RubyLouvre/events{/privacy}","received_events_url":"https://api.github.com/users/RubyLouvre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RubyLouvre/avalon","description":"A lightweight,high-performance and easy-to-learn javascript MVVM framework","fork":false,"url":"https://api.github.com/repos/RubyLouvre/avalon","forks_url":"https://api.github.com/repos/RubyLouvre/avalon/forks","keys_url":"https://api.github.com/repos/RubyLouvre/avalon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RubyLouvre/avalon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RubyLouvre/avalon/teams","hooks_url":"https://api.github.com/repos/RubyLouvre/avalon/hooks","issue_events_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/events{/number}","events_url":"https://api.github.com/repos/RubyLouvre/avalon/events","assignees_url":"https://api.github.com/repos/RubyLouvre/avalon/assignees{/user}","branches_url":"https://api.github.com/repos/RubyLouvre/avalon/branches{/branch}","tags_url":"https://api.github.com/repos/RubyLouvre/avalon/tags","blobs_url":"https://api.github.com/repos/RubyLouvre/avalon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RubyLouvre/avalon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RubyLouvre/avalon/git/refs{/sha}","trees_url":"https://api.github.com/repos/RubyLouvre/avalon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RubyLouvre/avalon/statuses/{sha}","languages_url":"https://api.github.com/repos/RubyLouvre/avalon/languages","stargazers_url":"https://api.github.com/repos/RubyLouvre/avalon/stargazers","contributors_url":"https://api.github.com/repos/RubyLouvre/avalon/contributors","subscribers_url":"https://api.github.com/repos/RubyLouvre/avalon/subscribers","subscription_url":"https://api.github.com/repos/RubyLouvre/avalon/subscription","commits_url":"https://api.github.com/repos/RubyLouvre/avalon/commits{/sha}","git_commits_url":"https://api.github.com/repos/RubyLouvre/avalon/git/commits{/sha}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/comments{/number}","issue_comment_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/comments{/number}","contents_url":"https://api.github.com/repos/RubyLouvre/avalon/contents/{+path}","compare_url":"https://api.github.com/repos/RubyLouvre/avalon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RubyLouvre/avalon/merges","archive_url":"https://api.github.com/repos/RubyLouvre/avalon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RubyLouvre/avalon/downloads","issues_url":"https://api.github.com/repos/RubyLouvre/avalon/issues{/number}","pulls_url":"https://api.github.com/repos/RubyLouvre/avalon/pulls{/number}","milestones_url":"https://api.github.com/repos/RubyLouvre/avalon/milestones{/number}","notifications_url":"https://api.github.com/repos/RubyLouvre/avalon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RubyLouvre/avalon/labels{/name}","releases_url":"https://api.github.com/repos/RubyLouvre/avalon/releases{/id}","created_at":"2013-06-09T06:34:28Z","updated_at":"2015-08-20T04:34:23Z","pushed_at":"2015-08-20T05:04:27Z","git_url":"git://github.com/RubyLouvre/avalon.git","ssh_url":"git@github.com:RubyLouvre/avalon.git","clone_url":"https://github.com/RubyLouvre/avalon.git","svn_url":"https://github.com/RubyLouvre/avalon","homepage":"http://avalonjs.github.io/","size":44617,"stargazers_count":2313,"watchers_count":2313,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":888,"mirror_url":null,"open_issues_count":11,"forks":888,"open_issues":11,"watchers":2313,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RubyLouvre/avalon/pulls/994"},"html":{"href":"https://github.com/RubyLouvre/avalon/pull/994"},"issue":{"href":"https://api.github.com/repos/RubyLouvre/avalon/issues/994"},"comments":{"href":"https://api.github.com/repos/RubyLouvre/avalon/issues/994/comments"},"review_comments":{"href":"https://api.github.com/repos/RubyLouvre/avalon/pulls/994/comments"},"review_comment":{"href":"https://api.github.com/repos/RubyLouvre/avalon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RubyLouvre/avalon/pulls/994/commits"},"statuses":{"href":"https://api.github.com/repos/RubyLouvre/avalon/statuses/5913111475bc47ce043f09bfecc6e7b9c8e590a8"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":3,"changed_files":1}}