Unified · Split
| @@ -12,6 +12,7 @@ module Docs · 11 unmodified lines | ||
| 12 | 12 | 'Fetch' => 'Fetch', |
| 13 | 13 | 'File API' => 'File', |
| 14 | 14 | 'Geolocation' => 'Geolocation', |
| 15 | + 'Geometry' => 'Geometry', | |
| 15 | 16 | 'Media Capture' => 'Media', |
| 16 | 17 | 'Media Source' => 'Media', |
| 17 | 18 | 'MediaStream' => 'Media', |
| @@ -24,7 +25,8 @@ module Docs · 6 unmodified lines | ||
| 24 | 25 | 'Web Messaging' => 'Web Messaging', |
| 25 | 26 | 'Web Storage' => 'Web Storage', |
| 26 | 27 | 'Web Workers' => 'Web Workers', |
| 27 | − 'WebRTC' => 'WebRTC' } | |
| 28 | + 'WebRTC' => 'WebRTC', | |
| 29 | + 'WebVR' => 'WebVR' } | |
| 28 | 30 | |
| 29 | 31 | TYPE_BY_NAME_STARTS_WITH = { |
| 30 | 32 | 'Audio' => 'Web Audio', |
| @@ -51,6 +53,7 @@ module Docs · 20 unmodified lines | ||
| 51 | 53 | 'Node' => 'Node', |
| 52 | 54 | 'Notification' => 'Notification', |
| 53 | 55 | 'ParentNode' => 'Node', |
| 56 | + 'Push' => 'Push', | |
| 54 | 57 | 'Range' => 'Range', |
| 55 | 58 | 'RTC' => 'WebRTC', |
| 56 | 59 | 'screen' => 'Screen', |
| @@ -79,6 +82,7 @@ module Docs · 22 unmodified lines | ||
| 79 | 82 | 'TextMetrics' => 'Canvas', |
| 80 | 83 | 'udio' => 'Web Audio', |
| 81 | 84 | 'WebGL' => 'Canvas', |
| 85 | + 'WebVR' => 'WebVR', | |
| 82 | 86 | 'Worker' => 'Web Workers' } |
| 83 | 87 | |
| 84 | 88 | TYPE_BY_NAME_MATCHES = {} |
| @@ -2,8 +2,8 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Javascript |
| 3 | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | 4 | TYPES = %w(Array ArrayBuffer Boolean DataView Date Function Intl JSON Map |
| 5 | − Math Number Object Promise RegExp Set String Symbol TypedArray WeakMap | |
| 6 | − WeakSet) | |
| 5 | + Math Number Object Promise RegExp Set SIMD String Symbol TypedArray | |
| 6 | + WeakMap WeakSet) | |
| 7 | 7 | INTL_OBJECTS = %w(Collator DateTimeFormat NumberFormat) |
| 8 | 8 | |
| 9 | 9 | def get_name |
| @@ -21,6 +21,7 @@ module Docs · 11 unmodified lines | ||
| 21 | 21 | name |
| 22 | 22 | else |
| 23 | 23 | name = super |
| 24 | + name.remove! 'Classes.' | |
| 24 | 25 | name.remove! 'Functions.' |
| 25 | 26 | name.remove! 'Functions and function scope.' |
| 26 | 27 | name.remove! 'Operators.' |
| @@ -34,6 +35,8 @@ module Docs · 7 unmodified lines | ||
| 34 | 35 | 'Statements' |
| 35 | 36 | elsif slug.start_with? 'Operators' |
| 36 | 37 | 'Operators' |
| 38 | + elsif slug.start_with? 'Classes' | |
| 39 | + 'Classes' | |
| 37 | 40 | elsif slug.start_with?('Functions_and_function_scope') || slug.start_with?('Functions') || slug.include?('GeneratorFunction') |
| 38 | 41 | 'Function' |
| 39 | 42 | elsif slug.start_with? 'Global_Objects' |