summaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/dist/svg.js b/dist/svg.js
index 7ea3c00..84b8892 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -1,4 +1,4 @@
-/* svg.js v0.32 - svg regex default color array number viewbox bbox rbox element parent container fx event defs group arrange mask clip gradient doc shape use rect ellipse line poly path plotable image text textpath nested sugar set memory loader - svgjs.com/license */
+/* svg.js v0.32-3-gd93be6c - svg regex default color array number viewbox bbox rbox element parent container fx event defs group arrange mask clip gradient doc shape use rect ellipse line poly path plotable image text textpath nested sugar set memory loader - svgjs.com/license */
;(function() {
this.SVG = function(element) {
@@ -2879,11 +2879,8 @@
SVG.extend(SVG.Element, {
- // Initialize local memory object
- _memory: {}
-
// Remember arbitrary data
- , remember: function(k, v) {
+ remember: function(k, v) {
/* remember every item in an object individually */
if (typeof arguments[0] == 'object')
for (var v in k)
@@ -2891,11 +2888,11 @@
/* retrieve memory */
else if (arguments.length == 1)
- return this._memory[k]
+ return this.memory()[k]
/* store memory */
else
- this._memory[k] = v
+ this.memory()[k] = v
return this
}
@@ -2906,11 +2903,16 @@
this._memory = {}
else
for (var i = arguments.length - 1; i >= 0; i--)
- delete this._memory[arguments[i]]
+ delete this.memory()[arguments[i]]
return this
}
+ // Initialize or return local memory object
+ , memory: function() {
+ return this._memory || (this._memory = {})
+ }
+
})
if (typeof define === 'function' && define.amd)