lib/assets/range.js
function(range) {
			if (this.overlap(range)) {
				var start = Math.max(range.start, this.start);
				var end = Math.min(range.end, this.end);
				return new Range(start, end - start);
			}
			
			return null;
		}
function(range) {
			if (this.overlap(range)) {
				var start = Math.max(range.start, this.start);
				var end = Math.min(range.end, this.end);
				return new Range(start, end - start);
			}
			
			return null;
		}
function ( range ) { if ( this . overlap ( range ) ) { var start = Math . max ( range . start , this . start ) ; var end = Math . min ( range . end , this . end ) ; return new Range ( start , end - start ) ; } return null ; }
Finds intersection of two ranges
@param {Range} range
@returns {Range} <code>null</code> if ranges does not overlap
Finds intersection of two ranges