From 000809752ed17b591973b9b1661e29d3cca4eb45 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Tue, 23 Dec 2014 23:27:09 -0500 Subject: [PATCH] Removing some unnecessary extend calls --- src/js/parser/javascript/match_fragment.js | 4 ++-- src/js/parser/javascript/subexp.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/parser/javascript/match_fragment.js b/src/js/parser/javascript/match_fragment.js index ec7ee58..e58059e 100644 --- a/src/js/parser/javascript/match_fragment.js +++ b/src/js/parser/javascript/match_fragment.js @@ -9,11 +9,11 @@ export default { var anchor = this.content.anchor, matrix = this.transform().localMatrix; - return _.extend(anchor, { + return { ax: matrix.x(anchor.ax, anchor.ay), ax2: matrix.x(anchor.ax2, anchor.ay), ay: matrix.y(anchor.ax, anchor.ay) - }); + }; } } }, diff --git a/src/js/parser/javascript/subexp.js b/src/js/parser/javascript/subexp.js index 8e4a56a..bc3c168 100644 --- a/src/js/parser/javascript/subexp.js +++ b/src/js/parser/javascript/subexp.js @@ -9,11 +9,11 @@ export default { var anchor = this.regexp.anchor, matrix = this.transform().localMatrix; - return _.extend(anchor, { + return { ax: matrix.x(anchor.ax, anchor.ay), ax2: matrix.x(anchor.ax2, anchor.ay), ay: matrix.y(anchor.ax, anchor.ay) - }); + }; } } },