Skip to content

Conversation

@kompolom
Copy link

Модификатор для провязки модели с блоком textarea. Работает на основе
glue-field_type_input.
Issue #176

Модификатор для провязки модели с блоком `textarea`. Работает на основе
`glue-field_type_input`
Copy link
Member

@belozer belozer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужно будет занятся рефакторингом glue-field... Он динозавр :)

@@ -0,0 +1,16 @@
modules.define('glue-field', ['i-bem__dom'], function(provide, BEMDOM) {

provide(BEMDOM.decl({ block: 'glue-field_type_textarea', baseBlock: 'glue-field_type_input' }, {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GlueField.decl({ modName : 'type', modVal : 'textarea'})

js: {
inited: function() {
this.__base();
this.input = this.findBlockOn('textarea');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this._control = this.findBlockOn(this.getMod('type'));

@@ -0,0 +1,16 @@
modules.define('glue-field', ['i-bem__dom'], function(provide, BEMDOM) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modules.define('glue-field', function(provide, GlueField) {

mustDeps: [
{ mods : { type : 'input' } }
],
shouldDeps: []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

удалить

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants