Skip to content

Commit

Permalink
browser.js+bemhtml appends bemhtml to the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhii Tatarintsev committed Aug 12, 2013
1 parent 4d2315b commit 26763f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .bem/techs/browser.js+bemhtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ exports.techMixin = {
return bemhtmlResults
.then(function(r) {

// put bemhtml templates at the top of builded js file
// put bemhtml templates at the bottom of builded js file
Object.keys(res).forEach(function(suffix) {
// test for array as in i18n.js+bemhtml tech
// there's hack to create symlink for default lang
// so 'js' key is a string there
Array.isArray(res[suffix]) && res[suffix].unshift(r['bemhtml.js']);
Array.isArray(res[suffix]) && res[suffix].push(r['bemhtml.js']);
});

});
Expand Down

0 comments on commit 26763f0

Please sign in to comment.