Permalink
Browse files

Issue 43. Switch to bem-core@2.0.0

  • Loading branch information...
varya committed Apr 16, 2014
2 parents 20e6acb + 3e1d4a8 commit f21f810b7cb4e16206ef3d088a8b2c38b615f8f3
View
@@ -2,7 +2,7 @@
"name": "bem-project-stub",
"version": "0.0.1",
"dependencies": {
"bem-core": "9e5dc255421304fd652552c948cdf7af35dc8a68",
"bem-core": "bem/bem-core#v2.1.0",
"bem-components": "bem/bem-components#231b03867325a51a33ae6bdd300b12946944a4de",
"bouwdoos" : "varya/bouwdoos#v1",
"bem-highlight.js" : "varya/bem-highlight.js"
@@ -1,9 +1,11 @@
/** @requires BEM */
/** @requires BEM.DOM */
modules.define('i-bem__dom', function(provide, DOM) {
modules.define(
{ block: 'candies' },

This comment has been minimized.

Show comment
Hide comment
@apsavin

apsavin Apr 16, 2014

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

@apsavin

apsavin Apr 16, 2014

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

function(provide) {
DOM.decl('candies', {
provide({
onSetMod : {
@@ -108,6 +110,4 @@ DOM.decl('candies', {
});
provide(DOM);
});
@@ -1,7 +1,10 @@
/** @requires BEM */
/* 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(){
@@ -2,9 +2,12 @@
// 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";
// Setup our defaults
var pluginName = 'github',
@@ -209,6 +212,4 @@ modules.define('i-bem__dom', ['jquery'], function(provide, $, DOM) {
}($, window, document));
provide(DOM);
});
@@ -1,9 +1,11 @@
/** @requires BEM */
/** @requires BEM.DOM */
modules.define('i-bem__dom', function(provide, DOM) {
modules.define(
{ block: 'github' },
function(provide) {
DOM.decl('github', {
provide({
onSetMod : {
@@ -24,6 +26,4 @@ DOM.decl('github', {
});
provide(DOM);
});
@@ -1,9 +1,12 @@
/** @requires BEM */
/** @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() {
this._codeContainer = this._codeContainer || this.domElem.find('pre code')[0];
return this._codeContainer;
@@ -19,6 +22,4 @@ DOM.decl('highlight', {
}
});
provide(DOM);
});
@@ -1,9 +1,12 @@
/** @requires BEM */
/** @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 : {
@@ -23,6 +26,4 @@ DOM.decl('recent-posts', {
});
provide(DOM);
});

0 comments on commit f21f810

Please sign in to comment.