修改addPath

This commit is contained in:
kekee000 2015-02-10 22:06:22 +08:00
parent 9b260d7f7a
commit aa5234cdf3
2 changed files with 2 additions and 1 deletions

View File

@ -147,7 +147,7 @@ define(
}
// 如果鼠标被按住则可以拖出bezier曲线
if (this.downMouse && points.length > 2) {
if (this.downMouse && points.length >= 2) {
// 设置倒数第二个点
var last2 = points[points.length - 2];
// 如果已经创建了曲线,则需要改变曲线形状

View File

@ -23,6 +23,7 @@ define(
});
// 由于indexDB在隐私模式下会被禁用这里需要检查下
// 出错则不使用indexedDB
projectDataStore.open(null, function () {
projectDataStore = null;
});