fixed #4924: Fix API inconsistence for cc.view