summaryrefslogtreecommitdiffstats
path: root/src/point.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/point.js')
-rw-r--r--src/point.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/point.js b/src/point.js
index 682092e..72a9572 100644
--- a/src/point.js
+++ b/src/point.js
@@ -32,7 +32,7 @@ SVG.Point = SVG.invent({
// Get morphed point at a given position
at: function (pos) {
// make sure a destination is defined
- if (!this.destination) return this
+ if (!this.destination) throw new Error('No destination set')
// calculate morphed matrix at a given position
var point = new SVG.Point({