aboutsummaryrefslogtreecommitdiffstats
path: root/src/arraycache.js
blob: 41fdbcd1832d6eab1c6ad497f965c4aeee5b84ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
SVG.extend(SVG.PointArray, SVG.PathArray, {
	// Cache bbox
  cache: function() {
		this._cachedBBox = this.uncache().bbox()

		return this
  }
  // Remove cache
, uncache: function() {
		delete this._cachedBBox
		return this
	}

})