From ec00f8b7ad7761c67999969b8de120b8c4645bb4 Mon Sep 17 00:00:00 2001 From: Rob Walch Date: Sun, 14 Apr 2013 12:00:33 -0400 Subject: [PATCH] remove the use of keyword 'default' --- src/default.js | 2 +- src/element.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/default.js b/src/default.js index 4efc226..1dbe9c0 100644 --- a/src/default.js +++ b/src/default.js @@ -1,5 +1,5 @@ -SVG.default = { +SVG.defaults = { // Default matrix matrix: '1,0,0,1,0,0' diff --git a/src/element.js b/src/element.js index bad57fa..83e106c 100644 --- a/src/element.js +++ b/src/element.js @@ -4,13 +4,13 @@ // SVG.Element = function(node) { /* make stroke value accessible dynamically */ - this._stroke = SVG.default.attrs.stroke + this._stroke = SVG.defaults.attrs.stroke /* initialize style store */ this.styles = {} /* initialize transformation store with defaults */ - this.trans = SVG.default.trans() + this.trans = SVG.defaults.trans() /* keep reference to the element node */ if (this.node = node) { @@ -130,7 +130,7 @@ SVG.extend(SVG.Element, { } else { v = this.node.getAttribute(a) return v == null ? - SVG.default.attrs[a] : + SVG.defaults.attrs[a] : SVG.regex.test(v, 'isNumber') ? parseFloat(v) : v } @@ -213,7 +213,7 @@ SVG.extend(SVG.Element, { o = this.trans /* add matrix */ - if (o.matrix != SVG.default.matrix) + if (o.matrix != SVG.defaults.matrix) transform.push('matrix(' + o.matrix + ')') /* add rotation */ -- 2.39.5