From: Iskren Chernev Date: Tue, 14 Jan 2014 17:18:53 +0000 (-0800) Subject: Make jshint happy X-Git-Tag: 2.5.1~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ac98ec59943154dd2fed21e4029c6667246b15b;p=thirdparty%2Fmoment.git Make jshint happy --- diff --git a/moment.js b/moment.js index d9afce2af..c367a90a0 100644 --- a/moment.js +++ b/moment.js @@ -387,8 +387,8 @@ } function cloneMoment(m) { - var result = {}; - for (var i in m) { + var result = {}, i; + for (i in m) { if (m.hasOwnProperty(i) && momentProperties.hasOwnProperty(i)) { result[i] = m[i]; } diff --git a/test/moment/create.js b/test/moment/create.js index 23f687329..64d76260a 100644 --- a/test/moment/create.js +++ b/test/moment/create.js @@ -106,13 +106,13 @@ exports.create = { }, "cloning moment works with weird clones" : function (test) { - var extend = function(a, b) { + var extend = function (a, b) { var i; for (i in b) { a[i] = b[i]; } return a; - }; + }, now = moment(), nowu = moment.utc(); diff --git a/test/moment/is_moment.js b/test/moment/is_moment.js index 1fd2a6e40..b73521b29 100644 --- a/test/moment/is_moment.js +++ b/test/moment/is_moment.js @@ -5,7 +5,7 @@ exports.is_moment = { test.expect(13); var MyObj = function () {}, - extend = function(a, b) { + extend = function (a, b) { var i; for (i in b) { a[i] = b[i];