OLD | NEW |
1 (function () { | 1 (function () { |
| 2 var log = function () {}; |
| 3 |
2 function OrientationTester(container, orientation) { | 4 function OrientationTester(container, orientation) { |
3 this.container = container; | 5 this.container = container; |
4 this.setOrientation(orientation); | 6 this.setOrientation(orientation); |
5 } | 7 } |
6 extend(OrientationTester.prototype, { | 8 extend(OrientationTester.prototype, { |
7 setOrientation: function (orientation) { | 9 setOrientation: function (orientation) { |
8 this.orientation = orientation; | 10 this.orientation = orientation; |
9 }, | 11 }, |
10 measure: function (results) { | 12 measure: function (results) { |
11 this.results = results; | 13 this.results = results; |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 if (text) | 207 if (text) |
206 node.textContent = text; | 208 node.textContent = text; |
207 parent.appendChild(node); | 209 parent.appendChild(node); |
208 return node; | 210 return node; |
209 } | 211 } |
210 | 212 |
211 function extend(target, dict) { | 213 function extend(target, dict) { |
212 for (var key in dict) | 214 for (var key in dict) |
213 target[key] = dict[key]; | 215 target[key] = dict[key]; |
214 } | 216 } |
215 | |
216 function log(text) { | |
217 console.log(text); | |
218 } | |
219 })(); | 217 })(); |
OLD | NEW |