 ###
 classPropertyNameMap = ( controlClass ) ->
   className = controlClass.className
-  unless propertyNameMaps[className]
+  unless propertyNameMaps[ className ]
     map = {}
     # Use the names on the control class' prototype for reference.
     for mixedCaseName of controlClass::
       lowerCaseName = mixedCaseName.toLowerCase()
-      map[lowerCaseName] = mixedCaseName
-    propertyNameMaps[className] = map
-  propertyNameMaps[className]
+      map[ lowerCaseName ] = mixedCaseName
+    propertyNameMaps[ className ] = map
+  propertyNameMaps[ className ]
 
 
 ###

  controlClass = Control.getClass className
  # Extract properties. Compound properties ( those defined in children )
  # will get removed from the control content at this point.
  lowerCaseProperties = $.extend(
    {},
    getPropertiesFromAttributes( element ),
    getCompoundPropertiesFromChildren( element )
  )
  properties = restorePropertyCase controlClass, lowerCaseProperties
  # Create the control.
  $( element ).control controlClass, properties


###

found in the control class are dropped.
###
restorePropertyCase = ( controlClass, properties ) ->
  return properties if jQuery.isEmptyObject properties
  map = classPropertyNameMap controlClass
  result = {}
  for propertyName of properties
    mixedCaseName = map[ propertyName.toLowerCase() ]
    result[ mixedCaseName ] = properties[ propertyName ] if mixedCaseName
  result


###
Cached maps for property names in rehydrated control classes. See below.
