function highlight(node) {

        if (!node || node.hasClass('animating')) {	// node may be new
            return;
        }

        var prevBgColor = node.getStyle('backgroundColor');
        var pulseOn = new Y.Anim({
            node: node,
            to: { backgroundColor: '#ffe0b3' }, // '#71B8D0'  },
            duration: 0.300, // 1.6,
            // reverse: true, // direction: 'alternate',
            // iterations: 2,
            last: null
        });

        pulseOnEndHandler = pulseOn.on('end', function () {

            pulseOn = null;

            var pulseOff = new Y.Anim({
                node: node,
                to: { backgroundColor: prevBgColor },
                duration: 0.300
            });

            pulseOff.on('end', function () {
                pulseOff = null;
                node.removeClass('animating');
            });

            function runOff() {
                if (node.getStyle('display')) {	// is it still valid (perhaps has been replaced)
                    pulseOff.run();
                }
            }

            setTimeout(runOff, 2000);

        });

        node.addClass('animating');

        if (node.getStyle('display')) {	// is it still valid (perhaps has been replaced)
            pulseOn.run();
        }

    }
// currently used to call attention to a node that was changed externally
currently used to call attention to a node that was changed externally
currently used to call attention to a node that was changed externally
function highlight(node) {
        if (!node || node.hasClass('animating')) {	
            return;
        }
        var prevBgColor = node.getStyle('backgroundColor');
        var pulseOn = new Y.Anim({
            node: node,
            to: { backgroundColor: '#ffe0b3' }, 
            duration: 0.300, 
            last: null
        });
        pulseOnEndHandler = pulseOn.on('end', function () {
            pulseOn = null;
            var pulseOff = new Y.Anim({
                node: node,
                to: { backgroundColor: prevBgColor },
                duration: 0.300
            });
            pulseOff.on('end', function () {
                pulseOff = null;
                node.removeClass('animating');
            });
            function runOff() {
                if (node.getStyle('display')) {	
                    pulseOff.run();
                }
            }
            setTimeout(runOff, 2000);
        });
        node.addClass('animating');
        if (node.getStyle('display')) {	
            pulseOn.run();
        }
    }
function highlight ( node ) { if ( ! node || node . hasClass ( 'animating' ) ) { return ; } var prevBgColor = node . getStyle ( 'backgroundColor' ) ; var pulseOn = new Y . Anim ( { node : node , to : { backgroundColor : '#ffe0b3' } , duration : 0.300 , last : null } ) ; pulseOnEndHandler = pulseOn . on ( 'end' , function ( ) { pulseOn = null ; var pulseOff = new Y . Anim ( { node : node , to : { backgroundColor : prevBgColor } , duration : 0.300 } ) ; pulseOff . on ( 'end' , function ( ) { pulseOff = null ; node . removeClass ( 'animating' ) ; } ) ; function runOff ( ) { if ( node . getStyle ( 'display' ) ) { pulseOff . run ( ) ; } } setTimeout ( runOff , 2000 ) ; } ) ; node . addClass ( 'animating' ) ; if ( node . getStyle ( 'display' ) ) { pulseOn . run ( ) ; } }
currently used to call attention to a node that was changed externally
currently used to call attention to a node that was changed externally
// node may be new // '#71B8D0'  }, // 1.6, // reverse: true, // direction: 'alternate', // iterations: 2, // is it still valid (perhaps has been replaced) // is it still valid (perhaps has been replaced)