Rename Document -> Project, DocumentView -> ProjectView, paper.document -> paper.project and paper.documents -> paper.projects, to avoid name clashing with window.document.

This commit is contained in:
Jürg Lehni 2011-05-16 13:33:15 +01:00
parent edd36e7df8
commit cfe968d30e
37 changed files with 699 additions and 183 deletions

View file

@ -12,7 +12,7 @@ test('path.join(path)', function() {
path.join(path2);
equals(path.segments.toString(), '{ point: { x: 0, y: 0 } },{ point: { x: 10, y: 0 } },{ point: { x: 20, y: 10 } }');
equals(function() {
return paper.document.activeLayer.children.length;
return paper.project.activeLayer.children.length;
}, 1);
var path = new Path();
@ -78,7 +78,7 @@ test('path.remove()', function() {
path.remove();
equals(function() {
return paper.document.activeLayer.children.length;
return paper.project.activeLayer.children.length;
}, 0);
});
@ -90,7 +90,7 @@ test('Is the path deselected after setting a new list of segments?', function()
return path.selected;
}, true);
equals(function() {
return paper.document.selectedItems.length;
return paper.project.selectedItems.length;
}, 1);
path.segments = [[0, 10]];
@ -98,7 +98,7 @@ test('Is the path deselected after setting a new list of segments?', function()
return path.selected;
}, false);
equals(function() {
return paper.document.selectedItems.length;
return paper.project.selectedItems.length;
}, 0);
});