aboutsummaryrefslogtreecommitdiffstats
path: root/src/gradient.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-07-07 11:24:24 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2017-07-07 11:24:24 +0200
commitdfae5055f19d17bad054d283890badd4f8c3dd12 (patch)
treec1d01ee3ab09428020a84c0aa0dfef722f7f4772 /src/gradient.js
parentb9ce105304f8d381ea7731cd12c2b9c499b4f37c (diff)
downloadsvg.js-dfae5055f19d17bad054d283890badd4f8c3dd12.tar.gz
svg.js-dfae5055f19d17bad054d283890badd4f8c3dd12.zip
renamed `SVG.Stop` constructor `at()` on `SVG.Gradient` to `stop()` (#707)
Diffstat (limited to 'src/gradient.js')
-rw-r--r--src/gradient.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gradient.js b/src/gradient.js
index 75237b4..de04fcd 100644
--- a/src/gradient.js
+++ b/src/gradient.js
@@ -10,7 +10,7 @@ SVG.Gradient = SVG.invent({
// Add class methods
, extend: {
// Add a color stop
- at: function(offset, color, opacity) {
+ stop: function(offset, color, opacity) {
return this.put(new SVG.Stop).update(offset, color, opacity)
}
// Update gradient