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; }