Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
allow for N levels of metadata through setMeta (RanvierMUD#89)
Browse files Browse the repository at this point in the history
Pretty sure this was supposed to be a shift().
  • Loading branch information
ratacat authored and shawncplus committed Aug 10, 2019
1 parent 2b1f779 commit db575bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Metadatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class extends parentClass {
let base = this.metadata;

while (parts.length) {
let part = parts.pop();
let part = parts.shift();
if (!(part in base)) {
throw new RangeError(`Metadata path invalid: ${key}`);
}
Expand Down

0 comments on commit db575bc

Please sign in to comment.