From 1de801bec00e3655f60802aba7efaeed49da5341 Mon Sep 17 00:00:00 2001 From: RubaXa Date: Thu, 10 Jul 2014 08:39:50 +0400 Subject: [PATCH] + _resolvedPromise --- src/Ply.es6 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Ply.es6 b/src/Ply.es6 index 9c7cd5d..cd6ae5a 100644 --- a/src/Ply.es6 +++ b/src/Ply.es6 @@ -82,7 +82,9 @@ array_push = array_core.push, array_splice = array_core.splice, - _plyAttr = 'data-ply' + _plyAttr = 'data-ply', + + _resolvedPromise = _promise((resolve) => resolve()) ; @@ -806,7 +808,7 @@ return _this; })); }; - _this.fx.queue = _promise((resolve) => { resolve(); }); + _this.fx.queue = _resolvedPromise; // Клик по затемнению @@ -1471,7 +1473,7 @@ } } - return _promise((resolve) => { resolve(); }); + return _resolvedPromise; },