|
1 | 1 | /* |
2 | | - Copyright (C) 2013 Povilas Kanapickas <povilas@radix.lt> |
| 2 | + Copyright (C) 2013-2014 Povilas Kanapickas <povilas@radix.lt> |
3 | 3 |
|
4 | 4 | This file is part of cppreference.com |
5 | 5 |
|
@@ -288,7 +288,7 @@ $(function() { |
288 | 288 | use when the object is shown. |
289 | 289 |
|
290 | 290 | Returns the id of the new object. |
291 | | - */ |
| 291 | + */ |
292 | 292 | this.add_object = function(obj, revs, display) { |
293 | 293 | var id = this.all_objects.length; |
294 | 294 | this.all_objects[id] = obj; |
@@ -425,10 +425,10 @@ $(function() { |
425 | 425 | } |
426 | 426 | }; |
427 | 427 |
|
428 | | - /** rev list template can be perpared separately from everything else. |
| 428 | + /** rev list template can be prepared separately from everything else. |
429 | 429 | Additionally, we don't need to copy any parts of the object tree: |
430 | | - the table rev list is contained within can be styled to appear as |
431 | | - if it isn't there. |
| 430 | + the elements within table rev list just need to be hidder or shown |
| 431 | + depending on the revision |
432 | 432 | */ |
433 | 433 | this.prepare_revs = function() { |
434 | 434 | this.rev_tables = $('.t-rev-begin'); |
@@ -630,6 +630,11 @@ $(function() { |
630 | 630 |
|
631 | 631 | // Get the mapping between revisions and function version numbers |
632 | 632 |
|
| 633 | + /* Get the mapping between revisions and function version numbers. |
| 634 | + The function returns an array: |
| 635 | +
|
| 636 | + array[revision][source version number] -> version number to display |
| 637 | + */ |
633 | 638 | function get_num_map() { |
634 | 639 | var num_map = []; |
635 | 640 |
|
|
0 commit comments