src/liveAddressPlugin.js
function turnOffAllClicks(selectors) {
			if (Array.isArray(selectors) || typeof selectors == "object") {
				for (var selector in selectors) {
					if (selectors.hasOwnProperty(selector)) {
						$("body").off("click", selectors[selector]);
					}
				}
			} else if (typeof selectors === "string") {
				$("body").off("click", selectors);
			} else {
				alert("ERROR: Not an array, string, or object passed in to turn off all clicks");
			}
		}
function turnOffAllClicks(selectors) {
			if (Array.isArray(selectors) || typeof selectors == "object") {
				for (var selector in selectors) {
					if (selectors.hasOwnProperty(selector)) {
						$("body").off("click", selectors[selector]);
					}
				}
			} else if (typeof selectors === "string") {
				$("body").off("click", selectors);
			} else {
				alert("ERROR: Not an array, string, or object passed in to turn off all clicks");
			}
		}
function turnOffAllClicks ( selectors ) { if ( Array . isArray ( selectors ) || typeof selectors == "object" ) { for ( var selector in selectors ) { if ( selectors . hasOwnProperty ( selector ) ) { $ ( "body" ) . off ( "click" , selectors [ selector ] ) ; } } } else if ( typeof selectors === "string" ) { $ ( "body" ) . off ( "click" , selectors ) ; } else { alert ( "ERROR: Not an array, string, or object passed in to turn off all clicks" ) ; } }
When we're done with a "pop-up" where the user chooses what to do, we need to remove all other events bound on that whole "pop-up" so that it doesn't interfere with any future "pop-ups".
When we re done with a pop - up where the user chooses what to do we need to remove all other events bound on that whole pop - up so that it doesn t interfere with any future pop - ups .