 ###
 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


###

  # Remove any data properties we've processed.
  # Removing during the loop above would complicate things, since
  # we also want to process the properties in the order they're defined.
  $element = jQuery element
  for key of properties
    $element.removeAttr "data-" + key
  properties
