src/ActionManager.js
function (action) {
        var targetID = action.originalTarget.id,
            element = this.targets[targetID]

        if (!element) {
            return
        }

        var actionIndex = element.actions.indexOf(action)

        if (actionIndex == -1) {
            return
        }

        if (this.currentTarget == element) {
            element.currentActionSalvaged = true
        }

        element.actions[actionIndex] = null
        element.actions.splice(actionIndex, 1); // Delete array item

        if (element.actions.length === 0) {
            if (this.currentTarget == element) {
                this.currentTargetSalvaged = true
            }
        }

    }
function (action) {
        var targetID = action.originalTarget.id,
            element = this.targets[targetID]

        if (!element) {
            return
        }

        var actionIndex = element.actions.indexOf(action)

        if (actionIndex == -1) {
            return
        }

        if (this.currentTarget == element) {
            element.currentActionSalvaged = true
        }

        element.actions[actionIndex] = null
        element.actions.splice(actionIndex, 1); // Delete array item

        if (element.actions.length === 0) {
            if (this.currentTarget == element) {
                this.currentTargetSalvaged = true
            }
        }

    }
function ( action ) { var targetID = action . originalTarget . id , element = this . targets [ targetID ] if ( ! element ) { return } var actionIndex = element . actions . indexOf ( action ) if ( actionIndex == - 1 ) { return } if ( this . currentTarget == element ) { element . currentActionSalvaged = true } element . actions [ actionIndex ] = null element . actions . splice ( actionIndex , 1 ) ; // Delete array item if ( element . actions . length === 0 ) { if ( this . currentTarget == element ) { this . currentTargetSalvaged = true } } }
Remove an action

@param {cocos.actions.Action} action Action to remove
Remove an action