Skip to content

Commit

Permalink
Issue 43. Switch to bem-core@2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
varya committed Apr 16, 2014
2 parents 20e6acb + 3e1d4a8 commit f21f810
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 22 deletions.
2 changes: 1 addition & 1 deletion bower.json
Expand Up @@ -2,7 +2,7 @@
"name": "bem-project-stub", "name": "bem-project-stub",
"version": "0.0.1", "version": "0.0.1",
"dependencies": { "dependencies": {
"bem-core": "9e5dc255421304fd652552c948cdf7af35dc8a68", "bem-core": "bem/bem-core#v2.1.0",
"bem-components": "bem/bem-components#231b03867325a51a33ae6bdd300b12946944a4de", "bem-components": "bem/bem-components#231b03867325a51a33ae6bdd300b12946944a4de",
"bouwdoos" : "varya/bouwdoos#v1", "bouwdoos" : "varya/bouwdoos#v1",
"bem-highlight.js" : "varya/bem-highlight.js" "bem-highlight.js" : "varya/bem-highlight.js"
Expand Down
8 changes: 4 additions & 4 deletions desktop.blocks/candies/candies.js
@@ -1,9 +1,11 @@
/** @requires BEM */ /** @requires BEM */
/** @requires BEM.DOM */ /** @requires BEM.DOM */


modules.define('i-bem__dom', function(provide, DOM) { modules.define(
{ block: 'candies' },

This comment has been minimized.

Copy link
@apsavin

apsavin Apr 16, 2014

You can use just 'candies' here, why {block: 'candies'}?

function(provide) {


DOM.decl('candies', { provide({


onSetMod : { onSetMod : {


Expand Down Expand Up @@ -108,6 +110,4 @@ DOM.decl('candies', {


}); });


provide(DOM);

}); });
5 changes: 4 additions & 1 deletion desktop.blocks/fonts/fonts.js
@@ -1,7 +1,10 @@
/** @requires BEM */ /** @requires BEM */
/* http://stackoverflow.com/questions/16253429/saving-a-css-web-font-in-html5-local-storage */ /* http://stackoverflow.com/questions/16253429/saving-a-css-web-font-in-html5-local-storage */


modules.define('fonts', ['jquery'], function(provide, $) { modules.define(
{ block: 'fonts' },
['jquery'],
function(provide, $) {


$(function(){ $(function(){


Expand Down
9 changes: 5 additions & 4 deletions desktop.blocks/github/__jquery/github__jquery.js
Expand Up @@ -2,9 +2,12 @@
// Source: http://www.joepettersson.com/demo/jquery-github-widget/ // Source: http://www.joepettersson.com/demo/jquery-github-widget/
// //
// //
modules.define('i-bem__dom', ['jquery'], function(provide, $, DOM) { modules.define(
{ block: 'github__jquery' },
['jquery'],
function(provide, $) {


(function ($, window, document, undefined) { provide(function ($, window, document, undefined) {
"use strict"; "use strict";
// Setup our defaults // Setup our defaults
var pluginName = 'github', var pluginName = 'github',
Expand Down Expand Up @@ -209,6 +212,4 @@ modules.define('i-bem__dom', ['jquery'], function(provide, $, DOM) {


}($, window, document)); }($, window, document));


provide(DOM);

}); });
8 changes: 4 additions & 4 deletions desktop.blocks/github/github.js
@@ -1,9 +1,11 @@
/** @requires BEM */ /** @requires BEM */
/** @requires BEM.DOM */ /** @requires BEM.DOM */


modules.define('i-bem__dom', function(provide, DOM) { modules.define(
{ block: 'github' },
function(provide) {


DOM.decl('github', { provide({


onSetMod : { onSetMod : {


Expand All @@ -24,6 +26,4 @@ DOM.decl('github', {


}); });


provide(DOM);

}); });
9 changes: 5 additions & 4 deletions desktop.blocks/highlight/__init/highlight__init.js
@@ -1,9 +1,12 @@
/** @requires BEM */ /** @requires BEM */
/** @requires BEM.DOM */ /** @requires BEM.DOM */


modules.define('i-bem__dom', ['jquery'], function(provide, $, DOM) { modules.define(
{ block: 'highlight' },
['jquery'],
function(provide, $) {


DOM.decl('highlight', { provide({
getCodeContainer: function() { getCodeContainer: function() {
this._codeContainer = this._codeContainer || this.domElem.find('pre code')[0]; this._codeContainer = this._codeContainer || this.domElem.find('pre code')[0];
return this._codeContainer; return this._codeContainer;
Expand All @@ -19,6 +22,4 @@ DOM.decl('highlight', {
} }
}); });


provide(DOM);

}); });
9 changes: 5 additions & 4 deletions desktop.blocks/recent-posts/recent-posts.js
@@ -1,9 +1,12 @@
/** @requires BEM */ /** @requires BEM */
/** @requires BEM.DOM */ /** @requires BEM.DOM */


modules.define('i-bem__dom', ['jquery', 'colors'], function(provide, $, colors, DOM) { modules.define(
{ block: 'recent-posts' },
['jquery', 'colors'],
function(provide, $, colors) {


DOM.decl('recent-posts', { provide({


onSetMod : { onSetMod : {


Expand All @@ -23,6 +26,4 @@ DOM.decl('recent-posts', {


}); });


provide(DOM);

}); });

0 comments on commit f21f810

Please sign in to comment.