Skip to content

Commit 9635b97

Browse files
author
Mikhail
committed
Merge pull request #628 from bem/restrry.IIFE-del
Убрать бессмысленные IIF
2 parents 09f743f + 3503ba6 commit 9635b97

File tree

9 files changed

+0
-42
lines changed

9 files changed

+0
-42
lines changed

blocks-common/b-menu-vert/__trigger/b-menu-vert__trigger.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/** @requires BEM */
2-
/** @requires BEM.DOM */
3-
4-
(function() {
5-
61
BEM.DOM.decl({ name: 'b-menu-vert', baseBlock: 'i-menu' }, {
72

83
onElemSetMod : {
@@ -59,5 +54,3 @@ BEM.DOM.decl({ name: 'b-menu-vert', baseBlock: 'i-menu' }, {
5954
}
6055

6156
});
62-
63-
})();

blocks-common/i-menu/i-menu.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/** @requires BEM */
2-
/** @requires BEM */
3-
4-
(function() {
5-
61
/**
72
* Abstract menu (helper)
83
*/
@@ -49,5 +44,3 @@ BEM.DOM.decl('i-menu', {
4944
}
5045

5146
});
52-
53-
})();

blocks-common/i-request-animation-frame/i-request-animation-frame.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
(function(w) {
32
if (w.requestAnimationFrame) return;
43
if ((w.requestAnimationFrame = w.webkitRequestAnimationFrame) &&

blocks-desktop/b-link/b-link.examples/40-b-link-dynamic-pseudo.blocks/b-lazy-link/b-lazy-link.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/** @requires BEM */
22
/** @requires BEM.DOM */
33

4-
(function() {
5-
64
BEM.DOM.decl('b-lazy-link', {
75

86
onSetMod : {
@@ -21,5 +19,3 @@ BEM.DOM.decl('b-lazy-link', {
2119
live : false
2220

2321
});
24-
25-
})();
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
/** @requires BEM */
22
/** @requires BEM.DOM */
33

4-
(function() {
5-
64
BEM.DOM.decl('b-page', {}, {
75

86
live : function() {
97
this.liveBindTo('click', function(e) {});
108
}
119

1210
});
13-
14-
})();
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
(function() {
2-
3-
/**
4-
* Horizontal menu
5-
*/
61
BEM.DOM.decl({ name: 'b-menu-horiz', baseBlock: 'i-menu' });
7-
8-
})();

blocks-desktop/i-bem/i-bem.examples/15-i-bem-click.blocks/b-square/b-square.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
(function(){
2-
31
/**
42
* The block's BEM declaration can state which block (a block with a modifier or a block with a specific modifier value)
53
* a given JavaScript component refers to.
@@ -41,5 +39,3 @@ BEM.DOM.decl('b-square', {
4139
}
4240

4341
});
44-
45-
}());

blocks-desktop/i-bem/i-bem.examples/17-i-bem-square.blocks/b-square/b-square.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
/** @requires BEM */
22
/** @requires BEM.DOM */
33

4-
(function(){
5-
64
BEM.DOM.decl('b-square', {
75

86
onSetMod : {
@@ -25,5 +23,3 @@ BEM.DOM.decl('b-square', {
2523
}
2624

2725
});
28-
29-
}());

blocks-desktop/i-bem/i-bem.examples/40-i-bem-extend.blocks/b-link/_action/b-link_action_alert.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
(function(){
2-
31
/**
42
* The block's BEM declaration can state which block (a block with a modifier or a block with a specific modifier value)
53
* a given JavaScript component refers to.
@@ -25,5 +23,3 @@ BEM.DOM.decl({ name: 'b-link', modName: 'action', modVal: 'alert' }, {
2523
}
2624

2725
});
28-
29-
}());

0 commit comments

Comments
 (0)