We are using JavaScript constructor class to set data attribute values for ajax call.
Below is the code snippet
Above code work correctly in local but on server raise exceptions because of constructor returns empty hash.
This issue comes for some users on live site.
1