src/ActionManager.js
function (opts) {

        var targetID = opts.target.id
        var element = this.targets[targetID]

        if (!element) {
            element = this.targets[targetID] = {
                paused: false,
                target: opts.target,
                actions: []
            }
        }

        element.actions.push(opts.action)

        opts.action.startWithTarget(opts.target)
    }
function (opts) {

        var targetID = opts.target.id
        var element = this.targets[targetID]

        if (!element) {
            element = this.targets[targetID] = {
                paused: false,
                target: opts.target,
                actions: []
            }
        }

        element.actions.push(opts.action)

        opts.action.startWithTarget(opts.target)
    }
function ( opts ) { var targetID = opts . target . id var element = this . targets [ targetID ] if ( ! element ) { element = this . targets [ targetID ] = { paused : false , target : opts . target , actions : [ ] } } element . actions . push ( opts . action ) opts . action . startWithTarget ( opts . target ) }
Adds an action with a target. If the target is already present, then the
action will be added to the existing target. If the target is not
present, a new instance of this target will be created either paused or
paused, and the action will be added to the newly created target. When
the target is paused, the queued actions won't be 'ticked'.

@opt {cocos.nodes.Node} target Node to run the action on
Adds an action with a target . If the target is already present then the action will be added to the existing target . If the target is not present a new instance of this target will be created either paused or paused and the action will be added to the newly created target . When the target is paused the queued actions won t be ticked .