Skip to content

Commit

Permalink
Fix for empty whole-object binding
Browse files Browse the repository at this point in the history
  • Loading branch information
slodge committed Jul 18, 2013
1 parent 7741063 commit d325fb7
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,14 @@ private MvxSourceStepDescription SourceStepDescriptionFrom(MvxSerializableBindin
}
}

throw new MvxException("Unknown serialized description");
// this probably suggests that the path is the entire source object
return new MvxPathSourceStepDescription()
{
SourcePropertyPath = null,
Converter = FindConverter(description.Converter),
ConverterParameter = description.ConverterParameter,
FallbackValue = description.FallbackValue
};
}
}
}

0 comments on commit d325fb7

Please sign in to comment.