From 1d617df4df4b2ae8dff41038c59ee67928e0f3cd Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Thu, 11 Dec 2008 04:28:35 +0100 Subject: [PATCH] Avoid using arguments.callee in string.js. --- src/lang/string.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lang/string.js b/src/lang/string.js index f50e570..587c944 100644 --- a/src/lang/string.js +++ b/src/lang/string.js @@ -83,9 +83,8 @@ Object.extend(String.prototype, (function() { } function escapeHTML() { - var self = arguments.callee; - self.text.data = this; - return self.div.innerHTML; + escapeHTML.text.data = this; + return escapeHTML.div.innerHTML; } function unescapeHTML() {