Skip to content

Commit

Permalink
dependencies: fix for lodash 3.6.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
vieron committed Mar 31, 2015
1 parent 54e1d64 commit 9291926
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ define([
var partialDeps = [];

function recursiveNodeSearch( statements, res ) {
_(statements).forEach(function ( statement ) {
_.forEach(statements, function ( statement ) {
if ( statement && statement.type && statement.type === 'partial' ) {
res.push(statement.partialName.name);
}
Expand Down Expand Up @@ -272,7 +272,7 @@ define([
var flag = false;

// loop through each statement
_(statements).forEach(function(statement) {
_.forEach(statements, function(statement) {
var parts;
var part;
var sideways;
Expand All @@ -296,7 +296,7 @@ define([

// grab the params
if ( statement.params && typeof Handlebars.helpers[statement.id.string] === 'undefined') {
_(statement.params).forEach(function(param) {
_.forEach(statement.params, function(param) {
if ( _(paramsWithoutParts).contains(param.original)
|| param instanceof Handlebars.AST.StringNode
|| param instanceof Handlebars.AST.IntegerNode
Expand Down Expand Up @@ -468,7 +468,7 @@ define([
// In dev mode in the browser
if ( require.isBrowser && ! config.isBuild ) {
head = document.head || document.getElementsByTagName('head')[0];
_(metaObj.styles).forEach(function (style) {
_.forEach(metaObj.styles, function (style) {
if ( !styleMap[style] ) {
linkElem = document.createElement('link');
linkElem.href = config.baseUrl + devStyleDirectory + style + '.css';
Expand All @@ -489,7 +489,7 @@ define([
return '@import url('+style+'.css);\n';
}
return '';
}).join('\n');
}).join('\n').value();

// I write out my import statements to a file in order to help me build stuff.
// Then I use a tool to inline my import statements afterwards. (you can run r.js on it too)
Expand Down

0 comments on commit 9291926

Please sign in to comment.