From c662aa0fbb5b651253b09b0ff11c4abfd6ee884a Mon Sep 17 00:00:00 2001 From: gstamac Date: Fri, 23 Aug 2013 12:08:00 +0200 Subject: [PATCH] jQuery: fixed a failing test --- jquery/jquery-tests.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index 2fd4ff9cb5..fa91dc6b63 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -1124,7 +1124,9 @@ function test_error() { $(this).hide(); }) .attr("src", "missing.png"); - jQuery.error = console.error; + jQuery.error = (message?: string) => { + console.error(message); return this; + } } function test_eventParams() {