cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.46k stars 160 forks source link

Add a $map helper method for easy construction of untyped objects #84

Closed renaudpawlak closed 8 years ago

renaudpawlak commented 8 years ago

A common JS code is something as: $("#myId").DataTable({responsive:true}). Although in an ideal world, {responsive:true} should be type, it is not always the case that we have the time/will to do it. Hence a shortcut to create the object easily in JSweet would be:

$("#myId").DataTable($map("responsive",true))

renaudpawlak commented 8 years ago

Done + tests + documentation