Skip to content

Commit

Permalink
fixed an error where 'con' object is null and raphael crashes before …
Browse files Browse the repository at this point in the history
…sending the proper error
  • Loading branch information
poechsel committed Nov 15, 2017
1 parent fe8e591 commit eb72b4d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions dev/raphael.svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -1272,14 +1272,14 @@ define(["./raphael.core"], function(R) {
};
R._engine.create = function () {
var con = R._getContainer.apply(0, arguments),
container = con && con.container,
x = con.x,
y = con.y,
width = con.width,
height = con.height;
container = con && con.container;
if (!container) {
throw new Error("SVG container not found.");
}
var x = con.x,
y = con.y,
width = con.width,
height = con.height;
var cnvs = $("svg"),
css = "overflow:hidden;",
isFloating;
Expand Down
10 changes: 5 additions & 5 deletions raphael.js
Original file line number Diff line number Diff line change
Expand Up @@ -7190,14 +7190,14 @@ return /******/ (function(modules) { // webpackBootstrap
};
R._engine.create = function () {
var con = R._getContainer.apply(0, arguments),
container = con && con.container,
x = con.x,
y = con.y,
width = con.width,
height = con.height;
container = con && con.container;
if (!container) {
throw new Error("SVG container not found.");
}
var x = con.x,
y = con.y,
width = con.width,
height = con.height;
var cnvs = $("svg"),
css = "overflow:hidden;",
isFloating;
Expand Down
6 changes: 3 additions & 3 deletions raphael.min.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions raphael.no-deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -6764,14 +6764,14 @@ return /******/ (function(modules) { // webpackBootstrap
};
R._engine.create = function () {
var con = R._getContainer.apply(0, arguments),
container = con && con.container,
x = con.x,
y = con.y,
width = con.width,
height = con.height;
container = con && con.container;
if (!container) {
throw new Error("SVG container not found.");
}
var x = con.x,
y = con.y,
width = con.width,
height = con.height;
var cnvs = $("svg"),
css = "overflow:hidden;",
isFloating;
Expand Down
4 changes: 2 additions & 2 deletions raphael.no-deps.min.js

Large diffs are not rendered by default.

0 comments on commit eb72b4d

Please sign in to comment.