From 2a70715ff9b447675b517e3c753287c935e41783 Mon Sep 17 00:00:00 2001 From: Xaar37 Date: Thu, 16 Jul 2015 08:50:31 +0200 Subject: [PATCH] Update deprecate.js --- src/lib/utils/deprecate.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/utils/deprecate.js b/src/lib/utils/deprecate.js index a076ad719..df4286b84 100644 --- a/src/lib/utils/deprecate.js +++ b/src/lib/utils/deprecate.js @@ -8,12 +8,11 @@ function warn(msg) { } export function deprecate(msg, fn) { - var firstTime = true, - msgWithStack = msg + '\n' + (new Error()).stack; + var firstTime = true; return extend(function () { if (firstTime) { - warn(msgWithStack); + warn(msg + '\n' + (new Error()).stack); firstTime = false; } return fn.apply(this, arguments); -- 2.47.2