bem-promised-models
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -27,5 +27,9 @@ /** | ||
} else if (type === 'Model' || type === 'ModelsList') { | ||
if (!BEM.blocks[modelType]) { | ||
throw new Error('Unknown attribute modelType:' + modelType); | ||
} | ||
//nested type | ||
attributeDecl.modelType = Model.attributeTypes[modelType] || BEM.blocks[modelType]; | ||
attributeClass = Model.attributeTypes[type].inherit(attributeDecl); | ||
attributeClass = Model.attributeTypes[type].inherit(attributeDecl).inherit({ | ||
modelType: BEM.blocks[modelType] | ||
}); | ||
} else if (Model.attributeTypes[type]) { | ||
@@ -32,0 +36,0 @@ //common types |
{ | ||
"description": "BEM wrapper for promised-models", | ||
"name": "bem-promised-models", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"repository": "git@github.com:delfrrr/bem-promised-models.git", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
49749
1476