Before 15.6.0 I used a lot of
Anyway, I found out that I could use ObjectCreateMode.Plain to go back to the old behavior, but Bridge seems to ignore that:
C# class:
I temporarily solved the problem by decorating my class with
Marco
[ObjectLiteral]
throughout my code. After upgrading to 15.6.0 I found that Bridge now calls a constructor on those objects, which seems to destroy the whole purpose of ObjectLiteral in my opinion.Anyway, I found out that I could use ObjectCreateMode.Plain to go back to the old behavior, but Bridge seems to ignore that:
C# class:
[ObjectLiteral(ObjectCreateMode.Plain)]
public class HistoryEntry
{
public Guid ViewControllerId { get; set; }
public string Hash { get; set; }
}
generated JS to create such an object:var he = BootForms.Bridge.Utils.HistoryEntry.ctor({ });
When really it should be:var he = { };
As soon as a class becomes a "real" JS object this poses a big problem when JS wants to clone the object for serialization, such as saving it to the browser history stack.I temporarily solved the problem by decorating my class with
[External]
, but I really would like to get the old behavior back. Thanks!Marco
Comment