Skip to content

Commit dad2bc2

Browse files
committed
Merge remote-tracking branch 'upstream/master' into merge-it-all
Conflicts: index.js
2 parents e1fb0bc + ad09e09 commit dad2bc2

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

components/checkbox.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
var EventEmitter = require('events').EventEmitter
22
var inherits = require('inherits')
3-
var uuid = require('node-uuid')
43

54
module.exports = Checkbox
65
inherits(Checkbox, EventEmitter)

demo/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ var inputs = [
1515
{type: 'range', label: 'one more', min: 0, max: 10}
1616
]
1717

18-
var panel1 = control(inputs,
18+
control(inputs,
1919
{theme: 'light', title: 'example panel 1', root: div1}
2020
)
2121

22-
var panel2 = control(inputs,
22+
control(inputs,
2323
{theme: 'dark', title: 'example panel 2', root: div2}
24-
)
24+
)

index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ function Plate (items, opts) {
7373
opacity: 0.95
7474
})
7575

76-
if (opts.position === 'top-right'
77-
|| opts.position === 'top-left'
78-
|| opts.position === 'bottom-right'
79-
|| opts.position === 'bottom-left') css(box, {position: 'absolute'})
76+
if (opts.position === 'top-right' ||
77+
opts.position === 'top-left' ||
78+
opts.position === 'bottom-right' ||
79+
opts.position === 'bottom-left') css(box, {position: 'absolute'})
8080

8181
if (opts.position === 'top-right' || opts.position === 'bottom-right') css(box, {right: 8})
8282
else css(box, {left: 8})

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"start": "watchify-server example.js | garnish",
8-
"test": "browserify test.js | testron | tap-spec",
8+
"test": "standard && browserify test.js | smokestack | tap-spec",
99
"build": "browserify demo/index.js -o demo/bundle.js",
1010
"deploy": "surge demo control-panel.surge.sh"
1111
},
@@ -46,9 +46,9 @@
4646
},
4747
"devDependencies": {
4848
"garnish": "^5.0.1",
49+
"smokestack": "^3.4.1",
4950
"tap-spec": "^4.1.1",
5051
"tape": "^4.5.1",
51-
"testron": "^1.2.0",
5252
"watchify-server": "^1.0.2"
5353
}
5454
}

test.js

+1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ test('checkbox', function (t) {
3333
t.equal(typeof document.querySelector('.input-panel-checkbox'), 'object')
3434
t.equal(typeof document.querySelector('#input-panel-label'), 'object')
3535
t.end()
36+
window.close()
3637
})

0 commit comments

Comments
 (0)