Skip to content

Commit 35c373e

Browse files
committed
IE8 test page cleanup
Removed unnecessary whitespace. Added semicolons. Require individual components.
1 parent fb48f2b commit 35c373e

File tree

1 file changed

+44
-68
lines changed

1 file changed

+44
-68
lines changed

ie8/src.js

+44-68
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,28 @@
11
/** @jsx React.DOM */
2-
var React = require('react')
3-
var BS = require('../cjs')
4-
var Button = BS.Button
5-
var DropdownButton = BS.DropdownButton
6-
var MenuItem = BS.MenuItem
7-
var Accordion = BS.Accordion
8-
var Panel = BS.Panel
9-
var ButtonToolbar = BS.ButtonToolbar
10-
var OverlayTrigger = BS.OverlayTrigger
11-
var Tooltip = BS.Tooltip
12-
var Alert = BS.Alert
13-
var TabbedArea = BS.TabbedArea
14-
var TabPane = BS.TabPane
15-
var Modal = BS.Modal
16-
var OverlayMixin = BS.OverlayMixin
17-
var Popover = BS.Popover
18-
var Carousel = BS.Carousel
19-
var CarouselItem = BS.CarouselItem
20-
21-
22-
2+
var React = require('react');
3+
var Button = require('../cjs/Button');
4+
var DropdownButton = require('../cjs/DropdownButton');
5+
var MenuItem = require('../cjs/MenuItem');
6+
var Accordion = require('../cjs/Accordion');
7+
var Panel = require('../cjs/Panel');
8+
var ButtonToolbar = require('../cjs/ButtonToolbar');
9+
var OverlayTrigger = require('../cjs/OverlayTrigger');
10+
var Tooltip = require('../cjs/Tooltip');
11+
var Alert = require('../cjs/Alert');
12+
var TabbedArea = require('../cjs/TabbedArea');
13+
var TabPane = require('../cjs/TabPane');
14+
var Modal = require('../cjs/Modal');
15+
var OverlayMixin = require('../cjs/OverlayMixin');
16+
var Popover = require('../cjs/Popover');
17+
var Carousel = require('../cjs/Carousel');
18+
var CarouselItem = require('../cjs/CarouselItem');
2319

2420
var dropdownInstance = (
2521
<DropdownButton title="Dropdown">
2622
<MenuItem key="1">Item 1</MenuItem>
2723
<MenuItem key="2">Item 2</MenuItem>
2824
</DropdownButton>
29-
)
30-
31-
32-
25+
);
3326

3427
var accordionInstance = (
3528
<Accordion>
@@ -45,9 +38,6 @@ var accordionInstance = (
4538
</Accordion>
4639
);
4740

48-
49-
50-
5141
var positionerInstance = (
5242
<ButtonToolbar>
5343
<OverlayTrigger placement="left" overlay={<Tooltip><strong>Holy guacamole!</strong> Check this info.</Tooltip>}>
@@ -65,8 +55,6 @@ var positionerInstance = (
6555
</ButtonToolbar>
6656
);
6757

68-
69-
7058
var popoverInstance = (
7159
<ButtonToolbar>
7260
<OverlayTrigger trigger="click" placement="left" overlay={<Popover title="Popover left"><strong>Holy guacamole!</strong> Check this info.</Popover>}>
@@ -84,20 +72,13 @@ var popoverInstance = (
8472
</ButtonToolbar>
8573
);
8674

87-
88-
89-
90-
9175
var tabbedAreaInstance = (
9276
<TabbedArea defaultActiveKey={2}>
9377
<TabPane key={1} tab="Tab 1">TabPane 1 content</TabPane>
9478
<TabPane key={2} tab="Tab 2">TabPane 2 content</TabPane>
9579
</TabbedArea>
9680
);
9781

98-
99-
100-
10182
var AlertAutoDismissable = React.createClass({
10283
getInitialState: function() {
10384
return {
@@ -129,9 +110,6 @@ var AlertAutoDismissable = React.createClass({
129110
}
130111
});
131112

132-
133-
134-
135113
var CustomModalTrigger = React.createClass({
136114
mixins: [OverlayMixin],
137115

@@ -174,31 +152,30 @@ var CustomModalTrigger = React.createClass({
174152
});
175153

176154
var carouselInstance = (
177-
<Carousel style={{width: 900}}>
178-
<CarouselItem>
179-
<img width={900} height={500} alt="900x500" src="/assets/carousel.png"/>
180-
<div className="carousel-caption">
181-
<h3>First slide label</h3>
182-
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
183-
</div>
184-
</CarouselItem>
185-
<CarouselItem>
186-
<img width={900} height={500} alt="900x500" src="/assets/carousel.png"/>
187-
<div className="carousel-caption">
188-
<h3>Second slide label</h3>
189-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
190-
</div>
191-
</CarouselItem>
192-
<CarouselItem>
193-
<img width={900} height={500} alt="900x500" src="/assets/carousel.png"/>
194-
<div className="carousel-caption">
195-
<h3>Third slide label</h3>
196-
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
197-
</div>
198-
</CarouselItem>
199-
</Carousel>
200-
);
201-
155+
<Carousel style={{width: 900}}>
156+
<CarouselItem>
157+
<img width={900} height={500} alt="900x500" src="assets/carousel.png"/>
158+
<div className="carousel-caption">
159+
<h3>First slide label</h3>
160+
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
161+
</div>
162+
</CarouselItem>
163+
<CarouselItem>
164+
<img width={900} height={500} alt="900x500" src="assets/carousel.png"/>
165+
<div className="carousel-caption">
166+
<h3>Second slide label</h3>
167+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
168+
</div>
169+
</CarouselItem>
170+
<CarouselItem>
171+
<img width={900} height={500} alt="900x500" src="assets/carousel.png"/>
172+
<div className="carousel-caption">
173+
<h3>Third slide label</h3>
174+
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
175+
</div>
176+
</CarouselItem>
177+
</Carousel>
178+
);
202179

203180
var allTests = (
204181
<div>
@@ -225,8 +202,7 @@ var allTests = (
225202

226203
<h2>Carousel</h2>
227204
{carouselInstance}
228-
229205
</div>
230-
)
206+
);
231207

232-
React.renderComponent(allTests, document.body)
208+
React.renderComponent(allTests, document.body);

0 commit comments

Comments
 (0)