Skip to content

Commit 7c1b9bc

Browse files
committed
Conflicts: html/css/print.css
2 parents f2d186a + d617a18 commit 7c1b9bc

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

doc/instanceof.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ nearly as useless as the [typeof operator](#typeof).
88

99
function Foo() {}
1010
function Bar() {}
11-
Bar.prototype = Foo;
11+
Bar.prototype = new Foo();
1212

1313
new Bar() instanceof Bar; // true
14+
new Bar() instanceof Foo; // true
15+
16+
// This just sets Bar.prototype to the function object Foo
17+
// But not to an actual instance of Foo
18+
Bar.prototype = Foo;
1419
new Bar() instanceof Foo; // false
1520

1621
### Using `instanceof` with native types

html/css/print.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ header h1, h2, h3 {
4242
article h2 > code, article h3 > code {
4343
text-transform: none;
4444
font-size: 0.9em;
45-
vertical-align: 2px;
4645
}
4746

4847
article h2 a {
@@ -54,6 +53,11 @@ article {
5453
width: 78%;
5554
padding-bottom: 0;
5655
border-bottom-width: 2px;
56+
page-break-before: always;
57+
}
58+
59+
header article {
60+
page-break-before: auto;
5761
}
5862

5963
aside {
@@ -90,6 +94,10 @@ article code {
9094
padding: 1px 3px;
9195
}
9296

97+
article pre code {
98+
padding: 0px;
99+
}
100+
93101
article li {
94102
margin-top: 6px;
95103
}
@@ -132,4 +140,4 @@ article ul, article ol {
132140
.kwd, .tag {
133141
color: #006;
134142
font-weight: bold;
135-
}
143+
}

0 commit comments

Comments
 (0)