|
@@ -1571,8 +1571,10 @@ function number_pad($number,$n) {
|
|
case 'up': $direction = 'keyup'; break;
|
|
case 'up': $direction = 'keyup'; break;
|
|
}
|
|
}
|
|
//check for element exceptions
|
|
//check for element exceptions
|
|
- if (sizeof($exceptions) > 0) {
|
|
|
|
- $exceptions = "!$(e.target).is('".implode(',', $exceptions)."') && ";
|
|
|
|
|
|
+ if (is_array($exceptions)) {
|
|
|
|
+ if (sizeof($exceptions) > 0) {
|
|
|
|
+ $exceptions = "!$(e.target).is('".implode(',', $exceptions)."') && ";
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//quote if selector is id or class
|
|
//quote if selector is id or class
|
|
$subject = ($subject != 'window' && $subject != 'document') ? "'".$subject."'" : $subject;
|
|
$subject = ($subject != 'window' && $subject != 'document') ? "'".$subject."'" : $subject;
|