New issue
 Projects > js > Issues > Refactor #3591

Deprecated property (arguments.callee) used in CCDirector.js and CCLoader.js

Refactor #3591 [Closed]
smashuu 2014-01-07 15:46 . Updated almost 3 years ago

CCDirector.js and CCLoader.js both include a reference to arguments.callee within functions, and this is not a valid property when in strict mode:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions\_and\_function\_scope/arguments/callee

I don’t know if this can be easily worked around, or if strict mode compatibility is a goal of the project, but I thought it should at least be noted.

pandamicro 2014-01-08 07:06
  • Status changed from New to Accepted
  • Assignee set to pandamicro
  • Target version set to v3.0 alpha
pandamicro 2014-01-09 05:55
  • Status changed from Accepted to Closed

Fixed by refactor all code using arguments.callee
ref: https://github.com/cocos2d/cocos2d-html5/pull/1470

pandamicro 2014-01-09 05:56
  • % Done changed from 0 to 100

Atom PDF

Status:Closed
Start date:2014-01-07
Priority:Low
Due date:
Assignee:pandamicro
% Done:

100%

Category:-
Target version:v3.0 alpha

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.