Use standard modelMixin instead of fields.wildcard

Call it fields.generic in exports - it has the same meaning for merlin
code (any field that Merlin provides), less code the better.

Change-Id: Id2eb8fbfa477c014f6e6eebdd9fb0e4298bb029c
This commit is contained in:
Timur Sufiev 2015-07-29 17:52:33 +03:00
parent 950164bbc1
commit c25b7d8507
2 changed files with 2 additions and 7 deletions

View File

@ -84,7 +84,7 @@
})
},
'value': {
'@class': fields.wildcard,
'@class': fields.generic,
'@factory': varlistValueFactory
}
})

View File

@ -9,10 +9,6 @@
merlinFieldModels.$inject = ['merlin.utils'];
function merlinFieldModels(utils) {
var wildcardMixin = Barricade.Blueprint.create(function() {
return this;
});
var viewChoicesMixin = Barricade.Blueprint.create(function() {
var self = this;
var dropDownLimit = this._dropDownLimit || 5;
@ -127,7 +123,6 @@
}
return title;
};
wildcardMixin.call(this);
if ( this.getEnumValues ) {
viewChoicesMixin.call(this);
}
@ -290,7 +285,7 @@
linkedcollection: linkedCollectionModel,
dictionary: dictionaryModel,
frozendict: frozendictModel,
wildcard: wildcardMixin // use for most general type-checks
generic: modelMixin // use for most general type-checks
};
}
})();