isPointInside incorrectly caches the path used to calculate its value. By @lvanderbijl

This commit is contained in:
Tomas Alabes 2013-06-02 17:07:19 -03:00
parent ad15a1c9b0
commit a96fd3b222
3 changed files with 3 additions and 3 deletions

2
raphael-min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -3652,7 +3652,7 @@
= (boolean) `true` if point inside the shape
\*/
elproto.isPointInside = function (x, y) {
var rp = this.realPath = this.realPath || getPath[this.type](this);
var rp = this.realPath = getPath[this.type](this);
if (this.attr('transform') && this.attr('transform').length) {
rp = R.transformPath(rp, this.attr('transform'));
}

View File

@ -4031,7 +4031,7 @@
= (boolean) `true` if point inside the shape
\*/
elproto.isPointInside = function (x, y) {
var rp = this.realPath = this.realPath || getPath[this.type](this);
var rp = this.realPath = getPath[this.type](this);
if (this.attr('transform') && this.attr('transform').length) {
rp = R.transformPath(rp, this.attr('transform'));
}