From 6ced985d0d45f809e22da44da52a0f68b567e14c Mon Sep 17 00:00:00 2001 From: Jeff Balogh Date: Fri, 14 May 2010 09:14:53 -0700 Subject: [PATCH] bail early if we have built-in placeholder support --- media/js/zamboni/init.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/media/js/zamboni/init.js b/media/js/zamboni/init.js index 29cb5e75ae..9038eebce4 100644 --- a/media/js/zamboni/init.js +++ b/media/js/zamboni/init.js @@ -47,6 +47,10 @@ var format = function(s, args) { /* Fake the placeholder attribute since Firefox doesn't support it. */ jQuery.fn.placeholder = function() { + /* Bail early if we have built-in placeholder support. */ + if ('placeholder' in document.createElement('input')) { + return this; + } return this.focus(function() { var $this = $(this), text = $this.attr('placeholder');