From: humbletim Date: Wed, 2 Oct 2013 18:00:54 +0000 (-0400) Subject: added hasOwnProperty check to lists enumeration X-Git-Tag: 2.3.0~5^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8de67932cf7420b42c4ca5e20cb3301ff90e8046;p=thirdparty%2Fmoment.git added hasOwnProperty check to lists enumeration --- diff --git a/moment.js b/moment.js index af9c7aeb2..ec74e86b5 100644 --- a/moment.js +++ b/moment.js @@ -1409,7 +1409,9 @@ }; for (i in lists) { - makeList(lists[i]); + if (lists.hasOwnProperty(i)) { + makeList(lists[i]); + } } // for use by developers when extending the library