From 51546a17cfb25ccedd8e5af1f73f87051df0a4b9 Mon Sep 17 00:00:00 2001 From: David-Julian BUCH Date: Fri, 19 Feb 2016 23:30:11 +0100 Subject: [PATCH] Corrected file to allow to be minified correctly Corrected file to allow to be minified correctly with closure-compiler --- src/modules/inactive/rangy-position.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/modules/inactive/rangy-position.js b/src/modules/inactive/rangy-position.js index fc71afb1..1e4c73bf 100644 --- a/src/modules/inactive/rangy-position.js +++ b/src/modules/inactive/rangy-position.js @@ -272,6 +272,14 @@ rangy.createModule("Position", ["WrappedSelection"], function(api, module) { }; }; }; + + var createDocumentBoundaryPosGetter = function (isStart) { + return function() { + var pos = this["get" + (isStart ? "Start" : "End") + "ClientPos"](); + var scrollPos = getScrollPosition( dom.getWindow(this.startContainer) ); + return { x: pos.x + scrollPos.x, y: pos.y + scrollPos.y }; + }; + }; var rangeProto = api.rangePrototype; @@ -457,14 +465,6 @@ rangy.createModule("Position", ["WrappedSelection"], function(api, module) { return getRectFromBoundaries(createWrappedRange(range)); }; } - - function createDocumentBoundaryPosGetter(isStart) { - return function() { - var pos = this["get" + (isStart ? "Start" : "End") + "ClientPos"](); - var scrollPos = getScrollPosition( dom.getWindow(this.startContainer) ); - return { x: pos.x + scrollPos.x, y: pos.y + scrollPos.y }; - }; - } } util.extend(rangeProto, {