Skip to content

Instantly share code, notes, and snippets.

@IgorMinar
Created December 14, 2011 00:22
Show Gist options
  • Save IgorMinar/1474608 to your computer and use it in GitHub Desktop.
Save IgorMinar/1474608 to your computer and use it in GitHub Desktop.
Misko's antiminification
case 8: /* Comment */
match = COMMENT_DIRECTIVE_REGEXP.exec(node.nodeValue);
- if (match &&
- (directive = getDirective(nName = camelCase(match[1])))) {
- attrs[nName] = trim(match[2]);
- directives.push(directive);
+ if (match) {
+ nName = camelCase(match[1]);
+ directive = getDirective(nName);
+ if (directive) {
+ attrs[nName] = trim(match[2]);
+ directives.push(directive);
+ }
}
break;
@IgorMinar
Copy link
Author

minmin+gzip
misko7327228225
igor7325628214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment