It's difficult to describe the application but basically I need to send 'this' as a parameter instead of it being available using 'this' from with in the function. Here is the case:
paragraph_element.addEventListener( "click", vFlipBP );
Here is part of vFlipBP
/**
*vFlipBP
*/
function vFlipBP( element_or_string ) {
var previous_page_element,
previous_tag_element,
current_page_element,
select_element;
console.log( 'element_or_string ' + element_or_string );
if( typeof ( element_or_string ) === 'string' ) {
select_element = document.getElementById( element_or_string );
} else {
select_element = this;
}
.
.
.
The issue it that even though this is valid JavaScript....jshint.com alert to "possible strict violation"
I just prefer no warnings....and don't want to have to configure jshint.com.
I want my code to pass 100% with out having to mess with configuring.
Picky...but just how I want it.