Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions node-amf/deserialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ AMFDeserializer.prototype.readObject = function( version ){
}
// adding type to JSON object so we can remember it and pass back to server
if( Traits.clss){
// https://github.com/brightcove/node-amf/issues/6
// If an existing type property exists, `deserialize` clobbers it.
if (Obj["type"]) {
Obj["type_before_amf_deserialize"] = Obj["type"];
}
Obj["type"] = Traits.clss;
}

Expand Down