From d986588f0ed6f8a4faf770468527bdf3846afd71 Mon Sep 17 00:00:00 2001 From: sanj Date: Sun, 14 Nov 2010 00:56:17 +0530 Subject: [PATCH] hasAttr --- padma.links.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/padma.links.js b/padma.links.js index 192f27b..d9fbb04 100644 --- a/padma.links.js +++ b/padma.links.js @@ -5,7 +5,7 @@ $(function() { $("a").each(function() { var that = this; - if (!$(this).hasAttr("href")) { + if ($(this).attr("href") === undefined) { return; } $(this).attr("target", "_blank");