Gazebo_simulation-Frontend/node_modules/.cache/babel-loader/2dd885bd34367a84227977e8ac1...

1 line
826 B
JSON

{"ast":null,"code":"'use strict';\n\nvar JSON3 = require('json3'),\n iframeUtils = require('./utils/iframe');\n\nfunction FacadeJS(transport) {\n this._transport = transport;\n transport.on('message', this._transportMessage.bind(this));\n transport.on('close', this._transportClose.bind(this));\n}\n\nFacadeJS.prototype._transportClose = function (code, reason) {\n iframeUtils.postMessage('c', JSON3.stringify([code, reason]));\n};\n\nFacadeJS.prototype._transportMessage = function (frame) {\n iframeUtils.postMessage('t', frame);\n};\n\nFacadeJS.prototype._send = function (data) {\n this._transport.send(data);\n};\n\nFacadeJS.prototype._close = function () {\n this._transport.close();\n\n this._transport.removeAllListeners();\n};\n\nmodule.exports = FacadeJS;","map":null,"metadata":{},"sourceType":"script"}