src/transform.js
function(element)
    {
        // Loop through all saved transform functions to generate the style text
        var funcs = Object.keys(element.transform);
        var style = [];

        funcs.forEach(function(func)
        {
            var args = element.transform[func];

            // If we have an array of arguments, join them with commas
            if(Array.isArray(args))
            {
                args = args.join(', ');
            }
            
            style.push(func + "("+args+") ");
        });

        // Update the element
        element.style['transform'] = style.join(" ");
        element.style['-webkit-transform'] = style.join(" ");
    }
function(element)
    {
        // Loop through all saved transform functions to generate the style text
        var funcs = Object.keys(element.transform);
        var style = [];

        funcs.forEach(function(func)
        {
            var args = element.transform[func];

            // If we have an array of arguments, join them with commas
            if(Array.isArray(args))
            {
                args = args.join(', ');
            }
            
            style.push(func + "("+args+") ");
        });

        // Update the element
        element.style['transform'] = style.join(" ");
        element.style['-webkit-transform'] = style.join(" ");
    }
function ( element ) { // Loop through all saved transform functions to generate the style text var funcs = Object . keys ( element . transform ) ; var style = [ ] ; funcs . forEach ( function ( func ) { var args = element . transform [ func ] ; // If we have an array of arguments, join them with commas if ( Array . isArray ( args ) ) { args = args . join ( ', ' ) ; } style . push ( func + "(" + args + ") " ) ; } ) ; // Update the element element . style [ 'transform' ] = style . join ( " " ) ; element . style [ '-webkit-transform' ] = style . join ( " " ) ; }
Private function for updating an element on the page
Private function for updating an element on the page