Use new Project#clear() instead of activeLayer.remove().

This commit is contained in:
Jürg Lehni 2013-04-23 07:11:23 -07:00
parent faecb7e78a
commit 86e77e12bc
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ test('Item Order', function() {
test('Item#moveAbove(item) / Item#moveBelow(item)', function() {
var item0, item1, item2;
var testMove = function(command, indexes) {
paper.project.activeLayer.remove();
paper.project.clear();
new Layer();
item0 = new Group();
item1 = new Group();

View file

@ -16,7 +16,7 @@ function testExportImportJson(project) {
// Use higher precision than in comparissons, for bounds
var json = project.exportJson({ precision: 8 });
var project2 = new Project();
project2.activeLayer.remove();
project2.clear();
project2.importJson(json);
compareProjects(project2, project);
}