summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Walch <rwalch@gmail.com>2013-04-14 12:00:33 -0400
committerRob Walch <rwalch@gmail.com>2013-04-14 12:00:33 -0400
commitec00f8b7ad7761c67999969b8de120b8c4645bb4 (patch)
tree50d9bf1c61562491c0890a4b2023423ec64ec735 /src
parentce1eb91fac1edc923b317caa83a3a4ab10e7c020 (diff)
downloadsvg.js-ec00f8b7ad7761c67999969b8de120b8c4645bb4.tar.gz
svg.js-ec00f8b7ad7761c67999969b8de120b8c4645bb4.zip
remove the use of keyword 'default'
Diffstat (limited to 'src')
-rw-r--r--src/default.js2
-rw-r--r--src/element.js8
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 */