summaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/svg.js b/dist/svg.js
index 92dee8c..b1c94db 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -6,7 +6,7 @@
* @copyright Wout Fierens <wout@mick-wout.com>
* @license MIT
*
-* BUILT: Thu Mar 09 2017 12:29:50 GMT+0100 (Mitteleuropäische Zeit)
+* BUILT: Thu Mar 09 2017 22:47:39 GMT+0100 (Mitteleuropäische Zeit)
*/;
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
@@ -2168,7 +2168,7 @@ SVG.Box = SVG.invent({
create: function(x, y, width, height) {
if (typeof x == 'object' && !(x instanceof SVG.Element)) {
// chromes getBoundingClientRect has no x and y property
- return SVG.Box.call(this, x.left || x.x, x.top || x.y, x.width, x.height)
+ return SVG.Box.call(this, x.left != null ? x.left : x.x , x.top != null ? x.top : x.y, x.width, x.height)
} else if (arguments.length == 4) {
this.x = x
this.y = y