aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/animation/Runner.js14
-rw-r--r--src/animation/Timeline.js2
-rw-r--r--src/elements/Dom.js2
-rw-r--r--src/types/Box.js2
-rw-r--r--src/types/Matrix.js4
-rw-r--r--src/utils/adopter.js2
6 files changed, 13 insertions, 13 deletions
diff --git a/src/animation/Runner.js b/src/animation/Runner.js
index 5639f84..9d50042 100644
--- a/src/animation/Runner.js
+++ b/src/animation/Runner.js
@@ -50,7 +50,7 @@ export default class Runner extends EventTarget {
this._time = 0
this._lastTime = 0
- // At creation, the runner is in reseted state
+ // At creation, the runner is in reset state
this._reseted = true
// Save transforms applied to this runner
@@ -67,7 +67,7 @@ export default class Runner extends EventTarget {
this._frameId = null
- // Stores how long a runner is stored after beeing done
+ // Stores how long a runner is stored after being done
this._persist = this._isDeclarative ? true : null
}
@@ -345,7 +345,7 @@ export default class Runner extends EventTarget {
const declarative = this._isDeclarative
this.done = !declarative && !justFinished && this._time >= duration
- // Runner is running. So its not in reseted state anymore
+ // Runner is running. So its not in reset state anymore
this._reseted = false
let converged = false
@@ -459,7 +459,7 @@ export default class Runner extends EventTarget {
// do nothing and return false
_tryRetarget (method, target, extra) {
if (this._history[method]) {
- // if the last method wasnt even initialised, throw it away
+ // if the last method wasn't even initialised, throw it away
if (!this._history[method].caller.initialised) {
const index = this._queue.indexOf(this._history[method].caller)
this._queue.splice(index, 1)
@@ -639,7 +639,7 @@ registerMethods({
this._transformationRunners.add(runner)
// Make sure that the runner merge is executed at the very end of
- // all Animator functions. Thats why we use immediate here to execute
+ // all Animator functions. That is why we use immediate here to execute
// the merge right after all frames are run
Animator.cancelImmediate(this._frameId)
this._frameId = Animator.immediate(mergeTransforms.bind(this))
@@ -889,7 +889,7 @@ extend(Runner, {
_queueNumberDelta (method, to) {
to = new SVGNumber(to)
- // Try to change the target if we have this method already registerd
+ // Try to change the target if we have this method already registered
if (this._tryRetarget(method, to)) return this
// Make a morpher and queue the animation
@@ -912,7 +912,7 @@ extend(Runner, {
},
_queueObject (method, to) {
- // Try to change the target if we have this method already registerd
+ // Try to change the target if we have this method already registered
if (this._tryRetarget(method, to)) return this
// Make a morpher and queue the animation
diff --git a/src/animation/Timeline.js b/src/animation/Timeline.js
index 387b59b..3f81b66 100644
--- a/src/animation/Timeline.js
+++ b/src/animation/Timeline.js
@@ -239,7 +239,7 @@ export default class Timeline extends EventTarget {
this.fire('time', this._time)
// This is for the case that the timeline was seeked so that the time
- // is now before the startTime of the runner. Thats why we need to set
+ // is now before the startTime of the runner. That is why we need to set
// the runner to position 0
// FIXME:
diff --git a/src/elements/Dom.js b/src/elements/Dom.js
index d2ece97..e45c16c 100644
--- a/src/elements/Dom.js
+++ b/src/elements/Dom.js
@@ -167,7 +167,7 @@ export default class Dom extends EventTarget {
if (!type) return parent
- // loop trough ancestors if type is given
+ // loop through ancestors if type is given
do {
if (typeof type === 'string' ? parent.matches(type) : parent instanceof type) return parent
} while ((parent = adopt(parent.node.parentNode)))
diff --git a/src/types/Box.js b/src/types/Box.js
index f8976d4..ab19732 100644
--- a/src/types/Box.js
+++ b/src/types/Box.js
@@ -209,7 +209,7 @@ registerMethods({
// that means, their clientRect is always as big as the content.
// Furthermore this size is incorrect if the element is further transformed by its parents
// computedStyle: Only returns meaningful values if css was used with px. We dont go this route here!
- // getBBox: returns the bounding box of its content - that doesnt help!
+ // getBBox: returns the bounding box of its content - that doesn't help!
let { width, height } = this.attr([ 'width', 'height' ])
// Width and height is a string when a number with a unit is present which we can't use
diff --git a/src/types/Matrix.js b/src/types/Matrix.js
index 406cb84..c329df4 100644
--- a/src/types/Matrix.js
+++ b/src/types/Matrix.js
@@ -51,7 +51,7 @@ export default class Matrix {
const origin = new Point(o.origin || o.around || o.ox || o.originX, o.oy || o.originY)
const ox = origin.x
const oy = origin.y
- // We need Point to be invalid if nothing was passed because we cannot default to 0 here. Thats why NaN
+ // We need Point to be invalid if nothing was passed because we cannot default to 0 here. That is why NaN
const position = new Point(o.position || o.px || o.positionX || NaN, o.py || o.positionY || NaN)
const px = position.x
const py = position.y
@@ -435,7 +435,7 @@ export default class Matrix {
if (isFinite(t.px) || isFinite(t.py)) {
const origin = new Point(ox, oy).transform(transformer)
// TODO: Replace t.px with isFinite(t.px)
- // Doesnt work because t.px is also 0 if it wasnt passed
+ // Doesn't work because t.px is also 0 if it wasn't passed
const dx = isFinite(t.px) ? t.px - origin.x : 0
const dy = isFinite(t.py) ? t.py - origin.y : 0
transformer.translateO(dx, dy)
diff --git a/src/utils/adopter.js b/src/utils/adopter.js
index 487115c..7e1c85e 100644
--- a/src/utils/adopter.js
+++ b/src/utils/adopter.js
@@ -36,7 +36,7 @@ export function makeInstance (element, isHTML = false) {
// that the first char is < and thus an element
element = adopter(wrapper.firstChild)
- // make sure, that element doesnt have its wrapper attached
+ // make sure, that element doesn't have its wrapper attached
wrapper.removeChild(wrapper.firstChild)
return element
}