Add back 'in' checks just to be sure
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2699 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
b058e518ef
commit
6fe03a595f
|
@ -239,7 +239,7 @@ svgedit.path.getPointGrip = function(seg, update) {
|
||||||
svgedit.path.getControlPoints = function(seg) {
|
svgedit.path.getControlPoints = function(seg) {
|
||||||
var item = seg.item;
|
var item = seg.item;
|
||||||
var index = seg.index;
|
var index = seg.index;
|
||||||
if (!(item.x1) || !(item.x2)) {return null;}
|
if (!('x1' in item) || !('x2' in item)) {return null;}
|
||||||
var cpt = {};
|
var cpt = {};
|
||||||
var pointGripContainer = svgedit.path.getGripContainer();
|
var pointGripContainer = svgedit.path.getGripContainer();
|
||||||
|
|
||||||
|
@ -898,7 +898,7 @@ svgedit.path.getPath_ = function(elem) {
|
||||||
};
|
};
|
||||||
|
|
||||||
svgedit.path.removePath_ = function(id) {
|
svgedit.path.removePath_ = function(id) {
|
||||||
if (pathData[id]) {delete pathData[id];}
|
if (id in pathData) {delete pathData[id];}
|
||||||
};
|
};
|
||||||
var newcx, newcy, oldcx, oldcy, angle;
|
var newcx, newcy, oldcx, oldcy, angle;
|
||||||
var getRotVals = function(x, y) {
|
var getRotVals = function(x, y) {
|
||||||
|
|
Loading…
Reference in New Issue