1 // Generated by CoffeeScript 1.10.0
2 var Options, Picker, React, createToolButton, init;
4 React = require('./React-shim');
6 createToolButton = require('./createToolButton');
8 Options = React.createFactory(require('./Options'));
10 Picker = React.createFactory(require('./Picker'));
12 init = function(pickerElement, optionsElement, lc, tools, imageURLPrefix) {
13 var toolButtonComponents;
14 toolButtonComponents = tools.map(function(ToolClass) {
16 toolInstance = new ToolClass(lc);
17 return createToolButton({
18 displayName: toolInstance.name,
19 imageName: toolInstance.iconName,
27 toolButtonComponents: toolButtonComponents,
28 imageURLPrefix: imageURLPrefix
30 return React.render(Options({
32 imageURLPrefix: imageURLPrefix
36 module.exports = init;