From 21d8674f3e29ba2144926218a21dfe492fb72172 Mon Sep 17 00:00:00 2001 From: Rockallite Wulf Date: Mon, 14 Apr 2014 09:29:13 +0800 Subject: [PATCH 1/2] Provide the ability to change debug flag on initialization via configuration object --- src/placeholder_polyfill.jquery.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/placeholder_polyfill.jquery.js b/src/placeholder_polyfill.jquery.js index 958aea4..ff6ca79 100644 --- a/src/placeholder_polyfill.jquery.js +++ b/src/placeholder_polyfill.jquery.js @@ -79,6 +79,7 @@ log('init placeHolder'); var o = this; var l = $(this).length; + debug = config.debug || false; // set debug flag this.options = $.extend({ className: 'placeholder', // css class that is used to style the placeholder visibleToScreenreaders : true, // expose the placeholder text to screenreaders or not From f37b57b411b30c578dda0b489b2e50ae53652a29 Mon Sep 17 00:00:00 2001 From: Rockallite Wulf Date: Mon, 14 Apr 2014 09:33:05 +0800 Subject: [PATCH 2/2] Update docs for the ability to change debug flag on initialization via configuration object --- readme.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.markdown b/readme.markdown index a652dc2..f003472 100644 --- a/readme.markdown +++ b/readme.markdown @@ -104,6 +104,8 @@ Please bear in mind that every input needs a linked label in order for the plugi