jQuery.Range.static.compare  function     

Compares one range to another range. This is different from the spec b/c the spec is confusing.

source.compare("STARTTOEND", toRange);

This returns -1 if source's start is before toRange's end.

$.Range.compare(type, range)
{Object}
{Object}
© Jupiter IT - JavaScriptMVC Training and Support