Skip to content

Commit

Permalink
remove codestyle changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aristov committed Apr 20, 2015
1 parent 510e40f commit 88a9a1c
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 27 deletions.
4 changes: 1 addition & 3 deletions common.blocks/attach/__control/attach__control.bemhtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ block('attach').elem('control')(
tag()('input'),

attrs()(function() {
var attrs = {
type : 'file'
},
var attrs = { type : 'file' },
attach = this._attach;

// в js генерим html для attach__control без самого attach
Expand Down
4 changes: 1 addition & 3 deletions common.blocks/attach/__control/attach__control.bh.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
module.exports = function(bh) {

bh.match('attach__control', function(ctx) {
var attrs = {
type : 'file'
},
var attrs = { type : 'file' },
attach = ctx.tParam('attach');

// в js генерим html для attach__control без самого attach
Expand Down
2 changes: 0 additions & 2 deletions common.blocks/button/_type/button_type_link.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ provide(Button.decl({ modName : 'type', modVal : 'link' }, /** @lends button.pro
'disabled' : {
'true' : function() {
this.__base.apply(this, arguments);

this.domElem.removeAttr('href');
},

'' : function() {
this.__base.apply(this, arguments);

this.domElem.attr('href', this._url);
}
}
Expand Down
1 change: 0 additions & 1 deletion common.blocks/checkbox/__control/checkbox__control.bemhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ block('checkbox').elem('control')(

attrs.name = ctx.name;
attrs.value = ctx.val;

ctx.checked && (attrs.checked = 'checked');
ctx.disabled && (attrs.disabled = 'disabled');

Expand Down
1 change: 0 additions & 1 deletion common.blocks/checkbox/__control/checkbox__control.bh.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = function(bh) {

attrs.name = json.name;
attrs.value = json.val;

json.checked && (attrs.checked = 'checked');
json.disabled && (attrs.disabled = 'disabled');

Expand Down
1 change: 1 addition & 0 deletions common.blocks/dropdown/dropdown.bemhtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
block('dropdown')(
js()(true),

content()(function() {
var popup = this.ctx.popup;

Expand Down
5 changes: 1 addition & 4 deletions common.blocks/dropdown/dropdown.bh.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ module.exports = function(bh) {
popupMods.target = 'anchor';

ctx.content([
{
elem : 'switcher',
content : json.switcher
},
{ elem : 'switcher', content : json.switcher },
popup
], true);
});
Expand Down
1 change: 0 additions & 1 deletion common.blocks/menu-item/menu-item.bemhtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ block('menu-item')(
var mods = this.mods;
mods.theme = mods.theme || this._menuMods.theme;
mods.disabled = mods.disabled || this._menuMods.disabled;

applyNext();
})
);
4 changes: 1 addition & 3 deletions common.blocks/popup/popup.bh.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ module.exports = function(bh) {
directions : json.directions,
zIndexGroupLevel : json.zIndexGroupLevel
})
.attrs({
id : json.id
});
.attrs({ id : json.id });
});
};
2 changes: 0 additions & 2 deletions common.blocks/radio/radio.bemhtml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
block('radio')(
tag()('label'),

js()(true),

content()(function() {
var ctx = this.ctx;
return [
Expand Down
4 changes: 1 addition & 3 deletions common.blocks/select/__menu/select__menu.bemhtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ block('select').elem('menu')(
mode : mods.mode
},
val : this._select.val,
attrs : {
tabindex : undefined
},
attrs : { tabindex : undefined },
content : this._select.options.map(function(optionOrGroup) {
return optionOrGroup.group?
{
Expand Down
4 changes: 1 addition & 3 deletions common.blocks/select/__menu/select__menu.bh.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ module.exports = function(bh) {
mode : mods.mode
},
val : select.val,
attrs : {
tabindex : null
},
attrs : { tabindex : null },
content : select.options.map(function(optionOrGroup) {
return optionOrGroup.group?
{
Expand Down
1 change: 0 additions & 1 deletion common.blocks/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ provide(BEMDOM.decl(this.name, /** @lends select.prototype */{
_isEventInPopup : function(e) {
return dom.contains(this._popup.domElem, $(e.target));
}

}, /** @lends select */{
live : function() {
this.liveInitOnBlockInsideEvent(
Expand Down

0 comments on commit 88a9a1c

Please sign in to comment.