From 7cd956d9c4d618e93c19a552b664c55fdcef29db Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Mon, 14 Jan 2008 01:38:28 +0000 Subject: [PATCH] prototype: Remove useless binding in Template#evaluate. --- CHANGELOG | 2 ++ src/string.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 079a069..065fdfd 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Remove useless binding in Template#evaluate. [Tobie Langel] + * Make Object.inspect more robust. [Tobie Langel] * Add a description to :test and :dist rake tasks. [Christoph Sturm] diff --git a/src/string.js b/src/string.js index 1fa396e..4074402 100644 --- a/src/string.js +++ b/src/string.js @@ -260,7 +260,7 @@ var Template = Class.create({ } return before + String.interpret(ctx); - }.bind(this)); + }); } }); Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/;