Skip to content

Commit 6d1128f

Browse files
committed
redoc
1 parent 683aa77 commit 6d1128f

File tree

7 files changed

+48
-32
lines changed

7 files changed

+48
-32
lines changed

docs/backbone.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,18 +1738,18 @@ <h2 id="backbone-model">Backbone.Model</h2>
17381738
};
17391739

17401740
options.success = <span class="hljs-function"><span class="hljs-keyword">function</span><span class="hljs-params">(resp)</span> </span>{
1741-
<span class="hljs-keyword">if</span> (wait || model.isNew()) destroy();
1741+
<span class="hljs-keyword">if</span> (wait) destroy();
17421742
<span class="hljs-keyword">if</span> (success) success.call(options.context, model, resp, options);
17431743
<span class="hljs-keyword">if</span> (!model.isNew()) model.trigger(<span class="hljs-string">'sync'</span>, model, resp, options);
17441744
};
17451745

1746+
<span class="hljs-keyword">var</span> xhr = <span class="hljs-literal">false</span>;
17461747
<span class="hljs-keyword">if</span> (<span class="hljs-keyword">this</span>.isNew()) {
1747-
options.success();
1748-
<span class="hljs-keyword">return</span> <span class="hljs-literal">false</span>;
1748+
_.defer(options.success);
1749+
} <span class="hljs-keyword">else</span> {
1750+
wrapError(<span class="hljs-keyword">this</span>, options);
1751+
xhr = <span class="hljs-keyword">this</span>.sync(<span class="hljs-string">'delete'</span>, <span class="hljs-keyword">this</span>, options);
17491752
}
1750-
wrapError(<span class="hljs-keyword">this</span>, options);
1751-
1752-
<span class="hljs-keyword">var</span> xhr = <span class="hljs-keyword">this</span>.sync(<span class="hljs-string">'delete'</span>, <span class="hljs-keyword">this</span>, options);
17531753
<span class="hljs-keyword">if</span> (!wait) destroy();
17541754
<span class="hljs-keyword">return</span> xhr;
17551755
},</pre></div></div>

docs/backbone.localStorage.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@
1616
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
1717
<a class="small" href="javascript:void(0);">+</a>
1818
<div id="jump_wrapper">
19-
<div id="jump_page">
20-
19+
<div id="jump_page_wrapper">
20+
<div id="jump_page">
2121

22-
<a class="source" href="backbone.localStorage.html">
23-
backbone.localStorage.js
24-
</a>
25-
22+
23+
<a class="source" href="backbone.localStorage.html">
24+
backbone.localStorage.js
25+
</a>
2626

27-
<a class="source" href="todos.html">
28-
todos.js
29-
</a>
30-
27+
28+
<a class="source" href="todos.html">
29+
todos.js
30+
</a>
31+
32+
</div>
3133
</div>
3234
</li>
3335
</ul>

docs/docco.css

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
}
2222

2323
@font-face {
24-
font-family: 'novecento-bold';
25-
src: url('public/fonts/novecento-bold.eot');
26-
src: url('public/fonts/novecento-bold.eot?#iefix') format('embedded-opentype'),
27-
url('public/fonts/novecento-bold.woff') format('woff'),
28-
url('public/fonts/novecento-bold.ttf') format('truetype');
24+
font-family: 'roboto-black';
25+
src: url('public/fonts/roboto-black.eot');
26+
src: url('public/fonts/roboto-black.eot?#iefix') format('embedded-opentype'),
27+
url('public/fonts/roboto-black.woff') format('woff'),
28+
url('public/fonts/roboto-black.ttf') format('truetype');
2929
font-weight: normal;
3030
font-style: normal;
3131
}
@@ -67,14 +67,17 @@ h1, h2, h3, h4, h5, h6 {
6767
color: #112233;
6868
line-height: 1em;
6969
font-weight: normal;
70-
font-family: "novecento-bold";
70+
font-family: "roboto-black";
7171
text-transform: uppercase;
7272
margin: 30px 0 15px 0;
7373
}
7474

7575
h1 {
7676
margin-top: 40px;
7777
}
78+
h2 {
79+
font-size: 1.26em;
80+
}
7881

7982
hr {
8083
border: 0;
@@ -180,9 +183,18 @@ ul.sections > li > div {
180183
display: block;
181184
}
182185

186+
#jump_page_wrapper{
187+
position: fixed;
188+
right: 0;
189+
top: 0;
190+
bottom: 0;
191+
}
192+
183193
#jump_page {
184194
padding: 5px 0 3px;
185195
margin: 0 0 25px 25px;
196+
max-height: 100%;
197+
overflow: auto;
186198
}
187199

188200
#jump_page .source {
-17.8 KB
Binary file not shown.
-47 KB
Binary file not shown.
-20.1 KB
Binary file not shown.

docs/todos.html

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@
1616
<a class="large" href="javascript:void(0);">Jump To &hellip;</a>
1717
<a class="small" href="javascript:void(0);">+</a>
1818
<div id="jump_wrapper">
19-
<div id="jump_page">
20-
19+
<div id="jump_page_wrapper">
20+
<div id="jump_page">
2121

22-
<a class="source" href="backbone.localStorage.html">
23-
backbone.localStorage.js
24-
</a>
25-
22+
23+
<a class="source" href="backbone.localStorage.html">
24+
backbone.localStorage.js
25+
</a>
2626

27-
<a class="source" href="todos.html">
28-
todos.js
29-
</a>
30-
27+
28+
<a class="source" href="todos.html">
29+
todos.js
30+
</a>
31+
32+
</div>
3133
</div>
3234
</li>
3335
</ul>

0 commit comments

Comments
 (0)