Compression fix
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 16 May 2008 18:37:34 +0000 (18:37 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 16 May 2008 18:37:34 +0000 (18:37 +0000)
js/behaviour.js

index d86df13b2c924e361f6088fb08432ece5bade5fb..ad0117447f8c10c8b5fed2b6648ac57cdd119df8 100644 (file)
@@ -165,7 +165,9 @@ document.getElementsBySelector = function(selector) {
       continue; // Skip to next token
     }
     // Code to deal with attribute selectors
-    if (token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)) {
+/* Original reg expression  /^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/ 
+    was replaced by new RegExp() cuz compressor fault */
+    if (token.match(new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$'))) {
       var tagName = RegExp.$1;
       var attrName = RegExp.$2;
       var attrOperator = RegExp.$3;