- getMetaAttributes: function() {
- var toret = new AttributesList(),
- classParts = [''].concat(this.getClass().split('.')),
- classCurrent, classDesc;
-
- classParts.forEach(function(part) {
- classCurrent = classCurrent ? classCurrent + '.' + part : part;
- classDesc = this.document.options.wlxmlClasses[classCurrent];
- if(classDesc) {
- _.keys(classDesc.attrs).forEach(function(attrName) {
- toret[attrName] = _.extend({value: this.getAttr(attrName)}, classDesc.attrs[attrName]);
- }.bind(this));
- }
+ hasChild: function(query) {
+ return this.contents().some(function(child) {
+ return child.is(query);