From 623c554dfe89a65c9aa2d99021daf0a768f9d836 Mon Sep 17 00:00:00 2001 From: sapics Date: Mon, 15 Oct 2018 14:38:02 +0900 Subject: [PATCH] Remove PaperScript code from core version --- src/core/PaperScope.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/PaperScope.js b/src/core/PaperScope.js index f608f5f5..6496af4a 100644 --- a/src/core/PaperScope.js +++ b/src/core/PaperScope.js @@ -203,9 +203,11 @@ var PaperScope = Base.extend(/** @lends PaperScope# */{ * @param {Object} [option] the compilation options */ execute: function(code, options) { - var exports = paper.PaperScript.execute(code, this, options); - View.updateFocus(); - return exports; +/*#*/ if (__options.paperScript) { + var exports = paper.PaperScript.execute(code, this, options); + View.updateFocus(); + return exports; +/*#*/ } }, /**