 
 class fill_properties extends properties
   constructor: (styleprovider, glyphspec, prefix="") ->
-    @fill_name       = "#{ prefix }fill_color"
+    @fill_color_name = "#{ prefix }fill_color"
     @fill_alpha_name = "#{ prefix }fill_alpha"
 
-    @color(styleprovider, glyphspec, @fill_name)
+    @color(styleprovider, glyphspec, @fill_color_name)
     @number(styleprovider, glyphspec, @fill_alpha_name)
 
-    @do_fill = @[@fill_name].default?
+    @do_fill = not _.isNull(@[@fill_color_name].value)
 
   set: (ctx, obj) ->
-    ctx.fillStyle   = @select(@fill_name,       obj)
+    ctx.fillStyle   = @select(@fill_color_name, obj)
     ctx.globalAlpha = @select(@fill_alpha_name, obj)
 
 


    # if the attribute is not on this property object at all, log a bad request
    if not (attrname of @)
      #console.log("requested unknown property '#{ attrname }' on object: " + obj)
      return

    # if the attribute specifies a field, and the field exists on the object, return that value

    @array(styleprovider, glyphspec, @line_dash_name)
    @number(styleprovider, glyphspec, @line_dash_offset_name)

    @do_stroke = not _.isNull(@[@line_color_name].value)

  set: (ctx, obj) ->
    ctx.strokeStyle = @select(@line_color_name, obj)
