Skip to content
This repository has been archived by the owner on Jan 13, 2018. It is now read-only.

Add ability to write tech module as a function (closes #363, BEM-930) #429

Merged
merged 3 commits into from
Sep 11, 2013

Conversation

scf2k
Copy link
Contributor

@scf2k scf2k commented Aug 19, 2013

No description provided.

if (!BEM) BEM = require('../..');

return BEM;
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scf2k Для чего это сделано?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Просто пдключить bem в этом файле нельзя из-за цикличной зависимости.

@scf2k
Copy link
Contributor Author

scf2k commented Sep 10, 2013

/cc @arikon

@SevInf
Copy link
Contributor

SevInf commented Sep 11, 2013

lgtm

SevInf pushed a commit that referenced this pull request Sep 11, 2013
Add ability to write tech module as a function (closes #363, BEM-930)
@SevInf SevInf merged commit 8a41b46 into release-1.0.0 Sep 11, 2013

var tech = typeof module === 'string'? require(module) : module;

if (typeof tech === 'function') tech = tech(getBem());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

По коду не хватает комментариев, говорящих о том, что делает каждая волшебная строчка.

@scf2k scf2k deleted the BEM-930 branch September 12, 2013 13:07
SevInf pushed a commit that referenced this pull request Sep 13, 2013
Add ability to write tech module as a function (closes #363, BEM-930)
Conflicts:
	lib/tech/index.js
	test/tech.js
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling a3d5bc8 on BEM-930 into * on release-1.0.0*.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants