From 4dcf3b71302c636836669596878eb840f64830fb Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Wed, 10 Nov 2010 20:28:58 -0700 Subject: [PATCH] fixed for IE, as the 'trim' method is not available on the String object --- ICanHaz.js | 2 +- test/test.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ICanHaz.js b/ICanHaz.js index 55ee3b6..94f125e 100644 --- a/ICanHaz.js +++ b/ICanHaz.js @@ -66,7 +66,7 @@ var ich; $('script[type="text/html"]').each(function () { var script = $(this), name = script.attr('id'), - text = script.html().trim(), + text = $.trim(script.html()), isPartial = script.attr('class').toLowerCase() === 'partial'; if (isPartial) { diff --git a/test/test.html b/test/test.html index fe0269d..cfbe073 100644 --- a/test/test.html +++ b/test/test.html @@ -6,7 +6,7 @@ - +