From b188d539c07ed827925680eb90802829cc99714d Mon Sep 17 00:00:00 2001 From: RubaXa Date: Sun, 10 Aug 2014 11:18:28 +0400 Subject: [PATCH] * .then -> .always --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }); });