Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/proto-list.js')
-rw-r--r--lib/utils/proto-list.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/proto-list.js b/lib/utils/proto-list.js
index 6adefdf42..a2917c247 100644
--- a/lib/utils/proto-list.js
+++ b/lib/utils/proto-list.js
@@ -39,7 +39,7 @@ ProtoList.prototype =
return this.list.shift()
}
, get : function (key) {
- return this.list[0][key]
+ return this.list[this.list.length - 1][key]
}
, set : function (key, val, save) {
if (!this.length) this.push({})