Categories

Compare version Configuration

Categories: Utilities | Properties of jQueryConfig

jQueryConfig.compareVersion

Plugin: jQuery.compareVersion

Description: Configure default values for future compare version calls.

  • jQueryConfig.compareVersion

    version added: 1.0

All subsequent $.compareVersion() calls will use the configuration.

Configure jQueryConfig.compareVersion to define an additional map of key/value pairs of integer values for special letters or words in a version string.

Default map:
{
    alpha:  -10,
    a:      -10,
    beta:    -8,
    b:       -8,
    release: -2
    r:       -2,
    rc:      -4
}