(value)
| 141 | } |
| 142 | |
| 143 | function selectScaleOption(value) { |
| 144 | // Retrieve the options from the zoom level <select> element |
| 145 | var options = scaleSelector.options, |
| 146 | option, |
| 147 | predefinedValueFound = false, |
| 148 | i; |
| 149 | |
| 150 | for (i = 0; i < options.length; i += 1) { |
| 151 | option = options[i]; |
| 152 | if (option.value !== value) { |
| 153 | option.selected = false; |
| 154 | continue; |
| 155 | } |
| 156 | option.selected = true; |
| 157 | predefinedValueFound = true; |
| 158 | } |
| 159 | return predefinedValueFound; |
| 160 | } |
| 161 | |
| 162 | function getPages() { |
| 163 | return viewerPlugin.getPages(); |
no outgoing calls
no test coverage detected