From: Xaar37 Date: Thu, 16 Jul 2015 06:50:31 +0000 (+0200) Subject: Update deprecate.js X-Git-Tag: 2.10.5~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a70715ff9b447675b517e3c753287c935e41783;p=thirdparty%2Fmoment.git Update deprecate.js --- 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);