Default value for dynamic EnumProperty

Hello,

I am trying to fix a bug in the Animation Nodes addon

The loop nodes has a dynamic EnumProperty and I need to select a default value. But only when the EnumProperty contains Items.
For that I need to know what the value of default is when I don’t give it a value. I thought it was an empty string

selectedLoop = bpy.props.EnumProperty(
    items=getStartLoopNodeItems,
    name="Selected Loop",
    default="",
    update=updateActiveL)

but this does not have the same behaviour as if I left out the default parameter

selectedLoop = bpy.props.EnumProperty(
    items=getStartLoopNodeItems,
    name="Selected Loop",
    update=updateActiveL)

Does anyone know what I have to pass to default in order to have the same behaviour?

dynamic enum props do not support default values. If the property does not have a previous value, I believe it makes the first item the “default”.

I got a good answer from Bastien Montagne on the Blender StackExchange Site: http://blender.stackexchange.com/questions/26362/dyanic-enumproperty-default-value/26366?noredirect=1#comment39264_26366

He even committed a fix after answering my question: https://developer.blender.org/rBfff8a519b85da
This is why I love Blender :eyebrowlift: