From dcab8e0c735db44572c3a4a47f1d323f04d39f3b Mon Sep 17 00:00:00 2001 From: Aidan Steele Date: Mon, 18 May 2015 11:57:40 +1000 Subject: [PATCH] Small spelling typo in mergePaths --- plugins/_path.js | 2 +- plugins/mergePaths.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/_path.js b/plugins/_path.js index 22f064ce..197048dc 100644 --- a/plugins/_path.js +++ b/plugins/_path.js @@ -602,7 +602,7 @@ function set(dest, source) { * @param {Array} path2 JS path representation * @return {Boolean} */ -exports.interesects = function(path1, path2) { +exports.intersects = function(path1, path2) { if (path1.length < 3 || path2.length < 3) return false; // nothing to fill // Collect points of every subpath. diff --git a/plugins/mergePaths.js b/plugins/mergePaths.js index 4877844f..a56e106f 100644 --- a/plugins/mergePaths.js +++ b/plugins/mergePaths.js @@ -12,7 +12,7 @@ exports.params = { var path2js = require('./_path.js').path2js, js2path = require('./_path.js').js2path, - interesects = require('./_path.js').interesects; + intersects = require('./_path.js').intersects; /** * Merge multiple Paths into one. @@ -54,7 +54,7 @@ exports.fn = function(item, params) { prevPathJS = path2js(prevContentItem), curPathJS = path2js(contentItem); - if (equalData && !interesects(prevPathJS, curPathJS)) { + if (equalData && !intersects(prevPathJS, curPathJS)) { js2path(prevContentItem, prevPathJS.concat(curPathJS), params); return false; }