Fix for missed `gradient` reference.

master
Dmitry Baranovskiy 2014-05-12 16:47:29 +10:00
parent 40f0c95002
commit c96be4e66a
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

4
dist/snap.svg.js vendored
View File

@ -14,7 +14,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// //
// build: 2014-05-08 // build: 2014-05-12
// Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. // Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
@ -3777,7 +3777,7 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
} else { } else {
fill = Snap.color(value); fill = Snap.color(value);
if (fill.error) { if (fill.error) {
var grad = gradient(getSomeDefs(this), value); var grad = Snap(getSomeDefs(this).ownerSVGElement).gradient(value);
if (grad) { if (grad) {
if (!grad.node.id) { if (!grad.node.id) {
$(grad.node, { $(grad.node, {

View File

@ -93,7 +93,7 @@ Snap.plugin(function (Snap, Element, Paper, glob, Fragment) {
} else { } else {
fill = Snap.color(value); fill = Snap.color(value);
if (fill.error) { if (fill.error) {
var grad = gradient(getSomeDefs(this), value); var grad = Snap(getSomeDefs(this).ownerSVGElement).gradient(value);
if (grad) { if (grad) {
if (!grad.node.id) { if (!grad.node.id) {
$(grad.node, { $(grad.node, {