src/Director.js
function () {
        if (!Director._instance) {
            if (window.navigator.userAgent.match(/(iPhone|iPod|iPad|Android)/)) {
                Director._instance = new DirectorTouchScreen()
            } else {
                Director._instance = new this()
            }
        }

        return Director._instance
    }
function () {
        if (!Director._instance) {
            if (window.navigator.userAgent.match(/(iPhone|iPod|iPad|Android)/)) {
                Director._instance = new DirectorTouchScreen()
            } else {
                Director._instance = new this()
            }
        }

        return Director._instance
    }
function ( ) { if ( ! Director . _instance ) { if ( window . navigator . userAgent . match ( / (iPhone|iPod|iPad|Android) / ) ) { Director . _instance = new DirectorTouchScreen ( ) } else { Director . _instance = new this ( ) } } return Director . _instance }
A shared singleton instance of cocos.Director

@memberOf cocos.Director
@getter {cocos.Director} sharedDirector
A shared singleton instance of cocos . Director