diff --git a/README.md b/README.md index 426ff74..1c506b8 100644 --- a/README.md +++ b/README.md @@ -129,8 +129,8 @@ var ply = new Ply({ // And -ply.open().then(function () { - ply.swap({ el: ".." }, "3d-flip").then(function () { +ply.open().always(function () { + ply.swap({ el: ".." }, "3d-flip").always(function () { ply.close(); }); });