app/assets/javascripts/blazer/application.js
Consider simplifying this complex logical expression. Open
Open
if (e.keyCode == 8) {
var d = e.srcElement || e.target
switch (d.tagName.toUpperCase()) {
case 'TEXTAREA':
preventKeyPress = d.readOnly || d.disabled
Function preventBackspaceNav
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function preventBackspaceNav() {
$(document).keydown(function (e) {
var preventKeyPress
if (e.keyCode == 8) {
var d = e.srcElement || e.target