(thisArg, handlerName, swapped, connectObject)
| 98 | } |
| 99 | |
| 100 | function _createClosure(thisArg, handlerName, swapped, connectObject) { |
| 101 | connectObject ??= thisArg; |
| 102 | |
| 103 | if (swapped) { |
| 104 | throw new Error('Unsupported template signal flag "swapped"'); |
| 105 | } else if (typeof thisArg[handlerName] === 'undefined') { |
| 106 | throw new Error(`A handler called ${handlerName} was not ` + |
| 107 | `defined on ${thisArg}`); |
| 108 | } |
| 109 | |
| 110 | return thisArg[handlerName].bind(connectObject); |
| 111 | } |
| 112 | |
| 113 | function _createBuilderConnectFunc(klass) { |
| 114 | const {GObject} = imports.gi; |
no outgoing calls
no test coverage detected