templates
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -153,6 +153,8 @@ 'use strict'; | ||
if (Array.isArray(views)) { | ||
return this.addList.apply(this, arguments); | ||
this.addList.apply(this, arguments); | ||
return this; | ||
} | ||
if (arguments.length > 1 && utils.isView(arguments[1])) { | ||
return this.addView.apply(this, arguments); | ||
this.addView.apply(this, arguments); | ||
return this; | ||
} | ||
@@ -187,7 +189,5 @@ this.emit('addViews', views); | ||
} | ||
if (typeof fn !== 'function') { | ||
fn = utils.identity; | ||
} | ||
var len = list.length, i = -1; | ||
@@ -194,0 +194,0 @@ while (++i < len) { |
{ | ||
"name": "templates", | ||
"description": "System for creating and managing template collections, and rendering templates with any node.js template engine. Can be used as the basis for creating a static site generator or blog framework.", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"homepage": "https://github.com/jonschlinkert/templates", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
107813
2807