From 7cf8d34f5441276d4684f30cd5d94af0cc14b725 Mon Sep 17 00:00:00 2001 From: Jonathan Pujol Date: Mon, 26 Sep 2016 18:12:44 +0200 Subject: [PATCH] Fix error variable name --- src/reference/builder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/reference/builder.js b/src/reference/builder.js index 7365af1..4c97a09 100755 --- a/src/reference/builder.js +++ b/src/reference/builder.js @@ -12,9 +12,9 @@ import {getElement, getCacheDuration} from './config'; let cache = {}; const promiseWaiting = []; -function _deletePromiseWaiting(name){ - const indexPrm = promiseWaiting.indexOf(key); - if(indexPrm !== -1){ +function _deletePromiseWaiting(name) { + const indexPrm = promiseWaiting.indexOf(name); + if(indexPrm !== -1) { promiseWaiting.splice(indexPrm, 1); } }