From d872a4f0c85d13fdbb9eb464a9728c9722d3d010 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 16 Jul 2015 04:13:59 -0400 Subject: [PATCH] feature(operation) speed up --- lib/client/operation.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/client/operation.js b/lib/client/operation.js index 50883257..787258d5 100644 --- a/lib/client/operation.js +++ b/lib/client/operation.js @@ -47,11 +47,9 @@ if (error) alert(error); else if (config.progress) - load(function() { - create(callback); - }); - else - callback(); + load(create); + + callback(); }); }, function() {