Commit 445b34eb authored by KR Moorhouse's avatar KR Moorhouse Committed by Kenny Hall

Removed jQuery calls and replaced with vanilla logic. (#3320)

parent cedd576c
......@@ -218,14 +218,8 @@ define( [], function() {
// use jQuery().text() to make sure help_text has actual
// text and not just HTML tags.
var check_text_par = document.createElement( 'p' );
var temp = jQuery( this.help_text ).text();
if( 0 != jQuery.trim( temp ).length ) {
var check_text_node = document.createTextNode( temp );
check_text_par.appendChild( check_text_node );
} else if( 0 == jQuery.trim( temp ).length && 'undefined' == typeof jQuery( this.help_text ).html() ) {
var check_text_node = document.createTextNode( this.help_text );
check_text_par.appendChild( check_text_node );
}
check_text_par.innerHTML = this.help_text;
check_text_par.innerHTML = check_text_par.innerText || check_text_par.textContent;
if ( 'undefined' != typeof this.help_text && 0 != jQuery.trim( jQuery( check_text_par ).text() ).length ) {
......
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
File mode changed from 100644 to 100755
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment