-3

Looking through some open source javascript library and I've come across some single character methods a few times:

myVar.c('foo').t('bar');

myVar refers to an XML DOM element. So what are c() and t()? I don't see any reference to such methods in the API: http://www.w3schools.com/dom/dom_element.asp

user1491636
  • 2,355
  • 11
  • 44
  • 71

1 Answers1

2

There is one remote possibility. When javascript is minified single letters are used to reduce function names. Your example above may be a minified version [file].min.js and therefore function names are obfuscated.

Dalorzo
  • 19,834
  • 7
  • 55
  • 102
  • 1
    No, minification rarely changes property names. Only case I know of is with Google's Closure Compiler in Advanced Mode when the annotations and usages allow it. –  Sep 26 '14 at 15:28