[Pkg-javascript-commits] [node-jade] 35/72: Set fallbacks correctly

Jelmer Vernooij jelmer at moszumanska.debian.org
Sun Jul 3 18:03:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

jelmer pushed a commit to annotated tag upstream/1.0.0
in repository node-jade.

commit 1ef009c990b83728a616e22d4e30b836264191e6
Author: Timothy Gu <timothygu99 at gmail.com>
Date:   Thu Jul 2 22:57:45 2015 -0700

    Set fallbacks correctly
---
 index.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index fc00783..0c1d217 100644
--- a/index.js
+++ b/index.js
@@ -98,7 +98,7 @@ function Transformer(tr) {
 }
 
 var fallbacks = {
-  compile: ['compile'],
+  compile: ['compile', 'render'],
   compileAsync: ['compileAsync', 'compile'],
   compileFile: ['compileFile', 'compile'],
   compileFileAsync: ['compileFileAsync', 'compileFile', 'compileAsync', 'compile'],
@@ -129,7 +129,7 @@ Transformer.prototype.can = function (method) {
 /* COMPILE */
 
 Transformer.prototype.compile = function (str, options) {
-  if (!this.can('compile')) {
+  if (!this._hasMethod('compile')) {
     if (this.can('render')) {
       var _this = this;
       return {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jade.git



More information about the Pkg-javascript-commits mailing list