Various clean-ups regarding the handling of activeLayer, JSON deserialization, DOM insertion and and layer reusing.

JSON deserialization does no longer insert items into DOM twice now, and should therefore be faster.
This commit is contained in:
Jürg Lehni 2013-11-24 16:25:13 +01:00
parent 42ec121c0a
commit af4410953f
6 changed files with 97 additions and 35 deletions

View file

@ -16,7 +16,6 @@ function testExportImportJSON(project) {
// Use higher precision than in comparissons, for bounds
var json = project.exportJSON({ precision: 8 });
var project2 = new Project();
project2.clear();
project2.importJSON(json);
compareProjects(project2, project);
}