]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
added hasOwnProperty check to lists enumeration
authorhumbletim <humbletim@gmail.com>
Wed, 2 Oct 2013 18:00:54 +0000 (14:00 -0400)
committerhumbletim <humbletim@gmail.com>
Wed, 2 Oct 2013 18:00:54 +0000 (14:00 -0400)
moment.js

index af9c7aeb29db4eb8bc98960c0a401bfe1e48032d..ec74e86b5e7254666d13a5f5eecd0a35024b4894 100644 (file)
--- a/moment.js
+++ b/moment.js
     };
 
     for (i in lists) {
-        makeList(lists[i]);
+        if (lists.hasOwnProperty(i)) {
+            makeList(lists[i]);
+        }
     }
 
     // for use by developers when extending the library