What do {curly braces} around javascript variable name mean [duplicate]
This is what’s known as a destructuring assignment, and it’s a new feature of JavaScript 1.7 (and ECMAScript 6) (Currently, only available as part of the Firefox JavaScript engine.) Roughly, it would translate into this: var ActionButton = require(“sdk/ui/button/action”).ActionButton; It seems silly in this example, as there’s only one item being assigned. However, you’d be … Read more