New issue
 Projects > js > Issues > Refactor #3942

Refactor #3661: JS style API refactoring(OO)

Refactor singleton Class to javascript object

Refactor #3942 [Closed]
pandamicro 2014-02-10 06:15 . Updated almost 3 years ago

Class involved:
cc.application
cc.director
cc.view (cc.EGLView)
cc.configuration
cc.loader
cc.saxParser
cc.screen
cc.eventManager
cc.textureCache
cc.spriteFrameCache
...

SmallAiTT 2014-02-10 09:52
  • Assignee set to SmallAiTT
pandamicro 2014-03-01 08:28

Full list:

cc.AudioEngine.getInstance() -> cc.audioEngine
cc.Configuration.getInstance() -> cc.configuration
cc.Director.getInstance() -> cc.director
cc.EGLView.getInstance() -> cc.view
cc.TextureCache.getInstance() -> cc.textureCache
cc.ShaderCache.getInstance() -> cc.shaderCache
cc.AnimationCache.getInstance() -> cc.animationCache
cc.SpriteFrameCache.getInstance() -> cc.spriteFrameCache
cc.SAXParser.getInstance() -> cc.saxParser
cc.PlistParser.getInstance() -> cc.plistParser
cc.Screen.getInstance() -> cc.screen
cc.TIFFReader.getInstance() -> cc.tiffReader
cc.IMEDispatcher.getInstance() -> cc.imeDispatcher

pandamicro 2014-03-05 09:35

Singleton classes in extension refactored

ccs.guiReader <- ccs.GUIReader
ccs.spriteFrameCacheHelper <- ccs.SpriteFrameCacheHelper
ccs.armatureDataManager <- ccs.ArmatureDataManager
ccs.actionManager <- ccs.ActionManager
ccs.objectFactory <- ccs.ObjectFactory
ccs.sceneReader <- ccs.SceneReader
ccs.triggerManager <- ccs.TriggerMng
ccs.dataReaderHelper <- ccs.DataReaderHelper

pandamicro 2014-03-05 14:57
  • Status changed from New to Closed
  • Assignee changed from SmallAiTT to pandamicro
pandamicro 2014-03-11 03:22

ccui.helper <- ccui.UIHelper

Atom PDF

Status:Closed
Start date:2014-03-04
Priority:High
Due date:
Assignee:pandamicro
% Done:

100%

Category:-
Target version:v3.0 alpha

Subtasks

Refactor #4240: Bind new singleton objects to JSBClosedpandamicro

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