Fix namespace of getKeysFromHash
This commit is contained in:
parent
aaa11ca105
commit
83f241e7b4
|
@ -44,7 +44,7 @@ Objects.prototype.pick = function (category, last) {
|
||||||
|
|
||||||
Objects.prototype.pop = function (objectName) {
|
Objects.prototype.pop = function (objectName) {
|
||||||
let self = this
|
let self = this
|
||||||
utils.getKeysFromHash(this.container).forEach(function (category) {
|
utils.common.getKeysFromHash(this.container).forEach(function (category) {
|
||||||
self.container[category].forEach(function (obj) {
|
self.container[category].forEach(function (obj) {
|
||||||
if (obj.name === objectName) {
|
if (obj.name === objectName) {
|
||||||
self.container[category].splice(self.container[category].indexOf(obj), 1)
|
self.container[category].splice(self.container[category].indexOf(obj), 1)
|
||||||
|
|
Loading…
Reference in New Issue