-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #353 from /issues/335@v1
Fix comments for bem-jsd
- Loading branch information
Showing
17 changed files
with
178 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ provide(inherit(Collection, null, /** @lends BEMDOMCollection */{ | |
} | ||
})); | ||
|
||
}); | ||
}); |
35 changes: 21 additions & 14 deletions
35
common.blocks/i-bem/__dom/_collection/i-bem__dom_collection_yes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,29 @@ | ||
/** | ||
* Overrides BEM.DOM.findBlocks* methods | ||
* that they return i-bem__collection_type_dom | ||
* @module i-bem__dom | ||
* @description Overrides BEM.DOM.findBlocks* methods that they return i-bem__collection_type_dom | ||
*/ | ||
|
||
modules.define('i-bem__dom', ['i-bem__collection_type_dom'], function(provide, Collection, DOM) { | ||
modules.define('i-bem__dom', ['i-bem__collection_type_dom'], function(provide, Collection, BEMDOM) { | ||
|
||
provide(DOM.decl('i-bem__dom', (function() { | ||
var decl = {}, | ||
wrapMethod = function() { | ||
return Collection.create(this.__base.apply(this, arguments)); | ||
}; | ||
provide( | ||
/** | ||
* @class BEMDOM | ||
* @augments BEMDOM | ||
* @exports | ||
*/ | ||
BEMDOM.decl('i-bem__dom', (function() { | ||
var decl = {}, | ||
wrapMethod = function() { | ||
return Collection.create(this.__base.apply(this, arguments)); | ||
}; | ||
|
||
['findBlocksInside', 'findBlocksOutside', 'findBlocksOn'] | ||
.forEach(function(method) { | ||
decl[method] = wrapMethod; | ||
}); | ||
['findBlocksInside', 'findBlocksOutside', 'findBlocksOn'] | ||
.forEach(function(method) { | ||
decl[method] = wrapMethod; | ||
}); | ||
|
||
return decl; | ||
}()))); | ||
return decl; | ||
}())) | ||
); | ||
|
||
}); |
2 changes: 1 addition & 1 deletion
2
common.blocks/i-bem/__dom/_elem-instances/i-bem__dom_elem-instances_yes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* @module i-bem__dom_elem-instances_yes | ||
* @module i-bem__dom | ||
*/ | ||
|
||
modules.define( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
common.blocks/i-bem/_elem-instances/i-bem_elem-instances_yes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* @module i-bem_elem-instances_yes | ||
* @module i-bem | ||
*/ | ||
|
||
modules.define( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
/** | ||
* @module jquery__config | ||
* @description Configuration for jQuery | ||
*/ | ||
|
||
modules.define('jquery__config', function(provide) { | ||
|
||
provide({ | ||
provide(/** @exports */{ | ||
/** | ||
* URL for loading jQuery if it does not exist | ||
*/ | ||
url : '//yandex.st/jquery/2.0.3/jquery.min.js' | ||
}); | ||
|
||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
touch.blocks/jquery/__event/_type/jquery__event_type_pointerclick.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.