Comparing version 3.1.0 to 3.1.1
@@ -69,4 +69,9 @@ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Curse=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
} else { | ||
child = anchorNode.childNodes[anchorOffset ? anchorOffset - 1 : 0]; | ||
start = this.lengthUpTo(child) + this.nodeLength(child, false, true); | ||
child = anchorNode.childNodes[anchorOffset - 1]; | ||
if (child) { | ||
start = this.lengthUpTo(child) + this.nodeLength(child, false, true); | ||
} else { | ||
start = this.lengthUpTo(anchorNode); | ||
} | ||
} | ||
@@ -77,4 +82,9 @@ | ||
} else { | ||
child = focusNode.childNodes[focusOffset ? focusOffset - 1 : 0]; | ||
end = this.lengthUpTo(child) + this.nodeLength(child, false, true); | ||
child = focusNode.childNodes[focusOffset - 1]; | ||
if (child) { | ||
end = this.lengthUpTo(child) + this.nodeLength(child, false, true); | ||
} else { | ||
end = this.lengthUpTo(focusNode); | ||
} | ||
} | ||
@@ -81,0 +91,0 @@ |
{ | ||
"name": "cursejs", | ||
"description": "A user selection caching utility", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"author": "Jonathan Clem", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -50,4 +50,9 @@ /** | ||
} else { | ||
child = anchorNode.childNodes[anchorOffset ? anchorOffset - 1 : 0]; | ||
start = this.lengthUpTo(child) + this.nodeLength(child, false, true); | ||
child = anchorNode.childNodes[anchorOffset - 1]; | ||
if (child) { | ||
start = this.lengthUpTo(child) + this.nodeLength(child, false, true); | ||
} else { | ||
start = this.lengthUpTo(anchorNode); | ||
} | ||
} | ||
@@ -58,4 +63,9 @@ | ||
} else { | ||
child = focusNode.childNodes[focusOffset ? focusOffset - 1 : 0]; | ||
end = this.lengthUpTo(child) + this.nodeLength(child, false, true); | ||
child = focusNode.childNodes[focusOffset - 1]; | ||
if (child) { | ||
end = this.lengthUpTo(child) + this.nodeLength(child, false, true); | ||
} else { | ||
end = this.lengthUpTo(focusNode); | ||
} | ||
} | ||
@@ -62,0 +72,0 @@ |
39372
1056