src/openseadragon.js
function(property) {
            var memo = {};

            $.getCssPropertyWithVendorPrefix = function(property) {
                if (memo[property] !== undefined) {
                    return memo[property];
                }
                var style = document.createElement('div').style;
                var result = null;
                if (style[property] !== undefined) {
                    result = property;
                } else {
                    var prefixes = ['Webkit', 'Moz', 'MS', 'O',
                        'webkit', 'moz', 'ms', 'o'];
                    var suffix = $.capitalizeFirstLetter(property);
                    for (var i = 0; i < prefixes.length; i++) {
                        var prop = prefixes[i] + suffix;
                        if (style[prop] !== undefined) {
                            result = prop;
                            break;
                        }
                    }
                }
                memo[property] = result;
                return result;
            };
            return $.getCssPropertyWithVendorPrefix(property);
        }
function(property) {
            var memo = {};

            $.getCssPropertyWithVendorPrefix = function(property) {
                if (memo[property] !== undefined) {
                    return memo[property];
                }
                var style = document.createElement('div').style;
                var result = null;
                if (style[property] !== undefined) {
                    result = property;
                } else {
                    var prefixes = ['Webkit', 'Moz', 'MS', 'O',
                        'webkit', 'moz', 'ms', 'o'];
                    var suffix = $.capitalizeFirstLetter(property);
                    for (var i = 0; i < prefixes.length; i++) {
                        var prop = prefixes[i] + suffix;
                        if (style[prop] !== undefined) {
                            result = prop;
                            break;
                        }
                    }
                }
                memo[property] = result;
                return result;
            };
            return $.getCssPropertyWithVendorPrefix(property);
        }
function ( property ) { var memo = { } ; $ . getCssPropertyWithVendorPrefix = function ( property ) { if ( memo [ property ] !== undefined ) { return memo [ property ] ; } var style = document . createElement ( 'div' ) . style ; var result = null ; if ( style [ property ] !== undefined ) { result = property ; } else { var prefixes = [ 'Webkit' , 'Moz' , 'MS' , 'O' , 'webkit' , 'moz' , 'ms' , 'o' ] ; var suffix = $ . capitalizeFirstLetter ( property ) ; for ( var i = 0 ; i < prefixes . length ; i ++ ) { var prop = prefixes [ i ] + suffix ; if ( style [ prop ] !== undefined ) { result = prop ; break ; } } } memo [ property ] = result ; return result ; } ; return $ . getCssPropertyWithVendorPrefix ( property ) ; }
Returns the property with the correct vendor prefix appended.
@param {String} property the property name
@returns {String} the property with the correct prefix or null if not
supported.
Returns the property with the correct vendor prefix appended .