(listener)
| 34836 | }(canvas.getContext); |
| 34837 | |
| 34838 | function wrapEvent(listener) { |
| 34839 | if (typeof(listener) == "function") { |
| 34840 | return listener; |
| 34841 | } else { |
| 34842 | return function(info) { |
| 34843 | listener.handleEvent(info); |
| 34844 | } |
| 34845 | } |
| 34846 | } |
| 34847 | |
| 34848 | var addOnContextLostListener = function(listener) { |
| 34849 | onLost_.push(wrapEvent(listener)); |
no test coverage detected