{"action":"created","comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/comments/44388421","id":44388421,"diff_hunk":"@@ -128,7 +128,7 @@\n         }\n     };\n \n-    proto._updateDisplayOpacity = function(parentOpacity){","path":"extensions/ccui/base-classes/UIScale9SpriteWebGLRenderCmd.js","position":4,"original_position":4,"commit_id":"964822ad281218514d406846926237454f7c6065","original_commit_id":"964822ad281218514d406846926237454f7c6065","user":{"login":"pandamicro","id":632460,"avatar_url":"https://avatars.githubusercontent.com/u/632460?v=3","gravatar_id":"","url":"https://api.github.com/users/pandamicro","html_url":"https://github.com/pandamicro","followers_url":"https://api.github.com/users/pandamicro/followers","following_url":"https://api.github.com/users/pandamicro/following{/other_user}","gists_url":"https://api.github.com/users/pandamicro/gists{/gist_id}","starred_url":"https://api.github.com/users/pandamicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandamicro/subscriptions","organizations_url":"https://api.github.com/users/pandamicro/orgs","repos_url":"https://api.github.com/users/pandamicro/repos","events_url":"https://api.github.com/users/pandamicro/events{/privacy}","received_events_url":"https://api.github.com/users/pandamicro/received_events","type":"User","site_admin":false},"body":"Please do not change the indent here","created_at":"2015-11-10T10:03:50Z","updated_at":"2015-11-10T10:03:50Z","html_url":"https://github.com/cocos2d/cocos2d-html5/pull/3181#discussion_r44388421","pull_request_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3181","_links":{"self":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/comments/44388421"},"html":{"href":"https://github.com/cocos2d/cocos2d-html5/pull/3181#discussion_r44388421"},"pull_request":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3181"}}},"pull_request":{"url":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3181","id":50234111,"html_url":"https://github.com/cocos2d/cocos2d-html5/pull/3181","diff_url":"https://github.com/cocos2d/cocos2d-html5/pull/3181.diff","patch_url":"https://github.com/cocos2d/cocos2d-html5/pull/3181.patch","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3181","number":3181,"state":"open","locked":false,"title":"Fixed opacity setting of Scale9Sprite","user":{"login":"1scaR1","id":10628482,"avatar_url":"https://avatars.githubusercontent.com/u/10628482?v=3","gravatar_id":"","url":"https://api.github.com/users/1scaR1","html_url":"https://github.com/1scaR1","followers_url":"https://api.github.com/users/1scaR1/followers","following_url":"https://api.github.com/users/1scaR1/following{/other_user}","gists_url":"https://api.github.com/users/1scaR1/gists{/gist_id}","starred_url":"https://api.github.com/users/1scaR1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1scaR1/subscriptions","organizations_url":"https://api.github.com/users/1scaR1/orgs","repos_url":"https://api.github.com/users/1scaR1/repos","events_url":"https://api.github.com/users/1scaR1/events{/privacy}","received_events_url":"https://api.github.com/users/1scaR1/received_events","type":"User","site_admin":false},"body":"I have node with cascade opacity enabled and scale9 sprite on it.\r\nIn actions like cc.fadeTo, cc.fadeIn, cc.fadeOut applied to node scale9 sprite doesn't change it's opacity( only after another part of scene is updated).\r\n```javascript\r\n//Some test case\r\nvar HelloWorldLayer = ccui.Layout.extend({\r\n    ctor:function () {\r\n        this._super();\r\n    \r\n        this.setCascadeOpacityEnabled(true);\r\n\r\n        var sprite = new ccui.Scale9Sprite(res.HelloWorld_png);\r\n\r\n        sprite.setPosition(200, 200);\r\n\r\n        this.addChild(sprite);\r\n\r\n        this.runAction(cc.fadeTo(1, 0));\r\n\r\n        return true;\r\n    }\r\n});\r\n```\r\n\r\nI have inspected code of **ccui.Scale9Sprite.WebGLRenderCmd** in previous versions of this file and i found that updating of opacity in render cmd must also update color in it's child parts.\r\n\r\nAlso at the moment this PR completely resolves my issue #3128 .","created_at":"2015-11-10T10:00:54Z","updated_at":"2015-11-10T10:03:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e302a547ace5866b6cfd6ff1d5c5b3d8bd2ce23f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3181/commits","review_comments_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3181/comments","review_comment_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3181/comments","statuses_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/statuses/964822ad281218514d406846926237454f7c6065","head":{"label":"1scaR1:develop","ref":"develop","sha":"964822ad281218514d406846926237454f7c6065","user":{"login":"1scaR1","id":10628482,"avatar_url":"https://avatars.githubusercontent.com/u/10628482?v=3","gravatar_id":"","url":"https://api.github.com/users/1scaR1","html_url":"https://github.com/1scaR1","followers_url":"https://api.github.com/users/1scaR1/followers","following_url":"https://api.github.com/users/1scaR1/following{/other_user}","gists_url":"https://api.github.com/users/1scaR1/gists{/gist_id}","starred_url":"https://api.github.com/users/1scaR1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1scaR1/subscriptions","organizations_url":"https://api.github.com/users/1scaR1/orgs","repos_url":"https://api.github.com/users/1scaR1/repos","events_url":"https://api.github.com/users/1scaR1/events{/privacy}","received_events_url":"https://api.github.com/users/1scaR1/received_events","type":"User","site_admin":false},"repo":{"id":45902441,"name":"cocos2d-html5","full_name":"1scaR1/cocos2d-html5","owner":{"login":"1scaR1","id":10628482,"avatar_url":"https://avatars.githubusercontent.com/u/10628482?v=3","gravatar_id":"","url":"https://api.github.com/users/1scaR1","html_url":"https://github.com/1scaR1","followers_url":"https://api.github.com/users/1scaR1/followers","following_url":"https://api.github.com/users/1scaR1/following{/other_user}","gists_url":"https://api.github.com/users/1scaR1/gists{/gist_id}","starred_url":"https://api.github.com/users/1scaR1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1scaR1/subscriptions","organizations_url":"https://api.github.com/users/1scaR1/orgs","repos_url":"https://api.github.com/users/1scaR1/repos","events_url":"https://api.github.com/users/1scaR1/events{/privacy}","received_events_url":"https://api.github.com/users/1scaR1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/1scaR1/cocos2d-html5","description":"cocos2d for Web Browsers. Built using JavaScript","fork":true,"url":"https://api.github.com/repos/1scaR1/cocos2d-html5","forks_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/forks","keys_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/teams","hooks_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/hooks","issue_events_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/issues/events{/number}","events_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/events","assignees_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/assignees{/user}","branches_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/branches{/branch}","tags_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/tags","blobs_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/git/refs{/sha}","trees_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/statuses/{sha}","languages_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/languages","stargazers_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/stargazers","contributors_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/contributors","subscribers_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/subscribers","subscription_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/subscription","commits_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/commits{/sha}","git_commits_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/git/commits{/sha}","comments_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/comments{/number}","issue_comment_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/issues/comments{/number}","contents_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/contents/{+path}","compare_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/merges","archive_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/downloads","issues_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/issues{/number}","pulls_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/pulls{/number}","milestones_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/milestones{/number}","notifications_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/labels{/name}","releases_url":"https://api.github.com/repos/1scaR1/cocos2d-html5/releases{/id}","created_at":"2015-11-10T09:45:06Z","updated_at":"2015-11-10T09:45:11Z","pushed_at":"2015-11-10T09:47:07Z","git_url":"git://github.com/1scaR1/cocos2d-html5.git","ssh_url":"git@github.com:1scaR1/cocos2d-html5.git","clone_url":"https://github.com/1scaR1/cocos2d-html5.git","svn_url":"https://github.com/1scaR1/cocos2d-html5","homepage":"http://www.cocos2d-html5.org","size":89464,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"cocos2d:develop","ref":"develop","sha":"9f65531571443d7ea81beb86c3a7b5c2659057d0","user":{"login":"cocos2d","id":234324,"avatar_url":"https://avatars.githubusercontent.com/u/234324?v=3","gravatar_id":"","url":"https://api.github.com/users/cocos2d","html_url":"https://github.com/cocos2d","followers_url":"https://api.github.com/users/cocos2d/followers","following_url":"https://api.github.com/users/cocos2d/following{/other_user}","gists_url":"https://api.github.com/users/cocos2d/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos2d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos2d/subscriptions","organizations_url":"https://api.github.com/users/cocos2d/orgs","repos_url":"https://api.github.com/users/cocos2d/repos","events_url":"https://api.github.com/users/cocos2d/events{/privacy}","received_events_url":"https://api.github.com/users/cocos2d/received_events","type":"Organization","site_admin":false},"repo":{"id":3224614,"name":"cocos2d-html5","full_name":"cocos2d/cocos2d-html5","owner":{"login":"cocos2d","id":234324,"avatar_url":"https://avatars.githubusercontent.com/u/234324?v=3","gravatar_id":"","url":"https://api.github.com/users/cocos2d","html_url":"https://github.com/cocos2d","followers_url":"https://api.github.com/users/cocos2d/followers","following_url":"https://api.github.com/users/cocos2d/following{/other_user}","gists_url":"https://api.github.com/users/cocos2d/gists{/gist_id}","starred_url":"https://api.github.com/users/cocos2d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocos2d/subscriptions","organizations_url":"https://api.github.com/users/cocos2d/orgs","repos_url":"https://api.github.com/users/cocos2d/repos","events_url":"https://api.github.com/users/cocos2d/events{/privacy}","received_events_url":"https://api.github.com/users/cocos2d/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cocos2d/cocos2d-html5","description":"cocos2d for Web Browsers. Built using JavaScript","fork":false,"url":"https://api.github.com/repos/cocos2d/cocos2d-html5","forks_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/forks","keys_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/teams","hooks_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/hooks","issue_events_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/events{/number}","events_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/events","assignees_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/assignees{/user}","branches_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/branches{/branch}","tags_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/tags","blobs_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/git/refs{/sha}","trees_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/statuses/{sha}","languages_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/languages","stargazers_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/stargazers","contributors_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/contributors","subscribers_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/subscribers","subscription_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/subscription","commits_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/commits{/sha}","git_commits_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/git/commits{/sha}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/comments{/number}","issue_comment_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/comments{/number}","contents_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/contents/{+path}","compare_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/merges","archive_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/downloads","issues_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues{/number}","pulls_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls{/number}","milestones_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/milestones{/number}","notifications_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/labels{/name}","releases_url":"https://api.github.com/repos/cocos2d/cocos2d-html5/releases{/id}","created_at":"2012-01-20T07:31:59Z","updated_at":"2015-11-08T17:30:54Z","pushed_at":"2015-11-10T10:00:54Z","git_url":"git://github.com/cocos2d/cocos2d-html5.git","ssh_url":"git@github.com:cocos2d/cocos2d-html5.git","clone_url":"https://github.com/cocos2d/cocos2d-html5.git","svn_url":"https://github.com/cocos2d/cocos2d-html5","homepage":"http://www.cocos2d-html5.org","size":89464,"stargazers_count":1801,"watchers_count":1801,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":780,"mirror_url":null,"open_issues_count":136,"forks":780,"open_issues":136,"watchers":1801,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3181"},"html":{"href":"https://github.com/cocos2d/cocos2d-html5/pull/3181"},"issue":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3181"},"comments":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/issues/3181/comments"},"review_comments":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3181/comments"},"review_comment":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/pulls/3181/commits"},"statuses":{"href":"https://api.github.com/repos/cocos2d/cocos2d-html5/statuses/964822ad281218514d406846926237454f7c6065"}}}}