mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-29 15:19:20 -04:00
Fix documentation irregularities.
This commit is contained in:
parent
cd74aaf5a3
commit
19c7788617
16 changed files with 133 additions and 130 deletions
src/core
|
@ -108,8 +108,8 @@ paper.PaperScope.prototype.PaperScript = (function(root) {
|
|||
*
|
||||
* @name PaperScript.compile
|
||||
* @function
|
||||
* @param {String} code The PaperScript code.
|
||||
* @return {String} The compiled PaperScript as JavaScript code.
|
||||
* @param {String} code The PaperScript code
|
||||
* @return {String} the compiled PaperScript as JavaScript code
|
||||
*/
|
||||
function compile(code) {
|
||||
// Use Acorn or Esprima to translate the code into an AST structure
|
||||
|
@ -238,9 +238,9 @@ paper.PaperScope.prototype.PaperScript = (function(root) {
|
|||
*
|
||||
* @name PaperScript.evaluate
|
||||
* @function
|
||||
* @param {String} code The PaperScript code.
|
||||
* @param {PaperScript} scope The scope in which the code is executed.
|
||||
* @return {Object} The result of the code evaluation.
|
||||
* @param {String} code The PaperScript code
|
||||
* @param {PaperScript} scope The scope in which the code is executed
|
||||
* @return {Object} the result of the code evaluation
|
||||
*/
|
||||
function evaluate(code, scope) {
|
||||
// Set currently active scope.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue