Fix typos

This commit is contained in:
Jürg Lehni 2018-11-21 11:58:22 +01:00
parent a4a2fb7eef
commit b1705f628b
3 changed files with 6 additions and 3 deletions

View file

@ -9,7 +9,10 @@
"url": "https://github.com/paperjs/paper.js" "url": "https://github.com/paperjs/paper.js"
}, },
"bugs": "https://github.com/paperjs/paper.js/issues", "bugs": "https://github.com/paperjs/paper.js/issues",
"contributors": ["Jürg Lehni <juerg@scratchdisk.com> (http://scratchdisk.com)", "Jonathan Puckey <jonathan@studiomoniker.com> (http://studiomoniker.com)"], "contributors": [
"Jürg Lehni <juerg@scratchdisk.com> (http://scratchdisk.com)",
"Jonathan Puckey <jonathan@studiomoniker.com> (http://studiomoniker.com)"
],
"main": "dist/paper-full.js", "main": "dist/paper-full.js",
"scripts": { "scripts": {
"precommit": "gulp jshint --branch develop", "precommit": "gulp jshint --branch develop",

View file

@ -177,7 +177,7 @@ Base.exports.PaperScript = function() {
var start = getOffset(node.range[0]), var start = getOffset(node.range[0]),
end = getOffset(node.range[1]), end = getOffset(node.range[1]),
insert = 0; insert = 0;
// Sort insertions by their offset, so getOffest() can do its thing // Sort insertions by their offset, so getOffset() can do its thing
for (var i = insertions.length - 1; i >= 0; i--) { for (var i = insertions.length - 1; i >= 0; i--) {
if (start > insertions[i][0]) { if (start > insertions[i][0]) {
insert = i + 1; insert = i + 1;

View file

@ -124,7 +124,7 @@ var CanvasView = View.extend(/** @lends CanvasView# */{
/** /**
* Updates the view if there are changes. Note that when using built-in * Updates the view if there are changes. Note that when using built-in
* event hanlders for interaction, animation and load events, this method is * event handlers for interaction, animation and load events, this method is
* invoked for you automatically at the end. * invoked for you automatically at the end.
* *
* @return {Boolean} {@true if the view was updated} * @return {Boolean} {@true if the view was updated}