зеркало из https://github.com/mozilla/shumway.git
Fixes inspector live view functionality.
This commit is contained in:
Родитель
a941054501
Коммит
bb93b49bd7
|
@ -1,9 +1,13 @@
|
|||
document.getElementById("viewDisplayList").addEventListener("click", function () {
|
||||
if (!gfxWindow) {
|
||||
return;
|
||||
}
|
||||
var currentEasel = gfxWindow.easel;
|
||||
var displayList = document.getElementById("displayList");
|
||||
if (displayList.children.length === 0) {
|
||||
var displayListTreeView = new Shumway.GFX.TreeRenderer(displayList, currentEasel.stage);
|
||||
var displayListTreeView = new gfxWindow.Shumway.GFX.TreeRenderer(displayList, currentEasel.stage);
|
||||
currentEasel.addEventListener("render", function () {
|
||||
displayListTreeView.render();
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче