Web.Admin/2014/wordpress/wp-includes/js/jquery/jquery.hotkeys.dev.js
Function add
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.add = function(combi, options, callback) {
if (jQuery.isFunction(options)){
callback = options;
options = {};
}
Function inspector
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var inspector = function(event) {
event = jQuery.event.fix(event); // jQuery event normalization.
var element = event.target;
// @ TextNode -> nodeType == 3
element = (element.nodeType==3) ? element.parentNode : element;
Consider simplifying this complex logical expression. Open
Open
if(!shift && !ctrl && !alt && !meta) { // No Modifiers
mapPoint = cbMap[special] || cbMap[character]
}
// deals with combinaitons (alt|ctrl|shift+anything)
else{