mixins/PeriodicActions.js
function (uuid) {
        var intervalData = null;
        var i = 0;
        var len = 0;
        var actionData = null;

        if (typeof uuid !== 'string') {
            return false;
        }

        intervalData = uuidMap[uuid];

        if (!intervalData) {
            return false;
        }

        uuidMap[uuid] = null;

        len = intervalData.actions.length;

        for (; i < len; i += 1) {
            actionData = intervalData.actions[i];
            if (actionData.uuid === uuid) {
                intervalData.actions.splice(i, 1);
                break;
            }
        }

        if (intervalData.actions.length === 0) {
            clearInterval(intervalData.id);
            intervalsMap[intervalData.interval] = null;
        }

        return true;
    }
function (uuid) {
        var intervalData = null;
        var i = 0;
        var len = 0;
        var actionData = null;

        if (typeof uuid !== 'string') {
            return false;
        }

        intervalData = uuidMap[uuid];

        if (!intervalData) {
            return false;
        }

        uuidMap[uuid] = null;

        len = intervalData.actions.length;

        for (; i < len; i += 1) {
            actionData = intervalData.actions[i];
            if (actionData.uuid === uuid) {
                intervalData.actions.splice(i, 1);
                break;
            }
        }

        if (intervalData.actions.length === 0) {
            clearInterval(intervalData.id);
            intervalsMap[intervalData.interval] = null;
        }

        return true;
    }
function ( uuid ) { var intervalData = null ; var i = 0 ; var len = 0 ; var actionData = null ; if ( typeof uuid !== 'string' ) { return false ; } intervalData = uuidMap [ uuid ] ; if ( ! intervalData ) { return false ; } uuidMap [ uuid ] = null ; len = intervalData . actions . length ; for ( ; i < len ; i += 1 ) { actionData = intervalData . actions [ i ] ; if ( actionData . uuid === uuid ) { intervalData . actions . splice ( i , 1 ) ; break ; } } if ( intervalData . actions . length === 0 ) { clearInterval ( intervalData . id ) ; intervalsMap [ intervalData . interval ] = null ; } return true ; }
Stop running an action periodically

@method  stopPeriodicAction

@param  {string} uuid A globally unique identifier

@return {boolean} True if stopping the periodic action succeeded, false otherwise
Stop running an action periodically