Files
JiboSDK/node_modules/jibo-tools/lib/simulator/elements/custom-elements.js

1 line
1.5 KiB
JavaScript
Raw Normal View History

2026-03-22 03:21:45 +02:00
"use strict";var t=function(){function t(t,e){for(var n in e){var r=e[n];r.configurable=!0,r.value&&(r.writable=!0)}Object.defineProperties(t,e)}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),e=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.__proto__=e)},n=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},r=require("react/lib/ReactInjection"),o={isCustomAttribute:function(t){return-1!==["mini"].indexOf(t)},Properties:{mini:null},DOMAttributeNames:{},DOMPropertyNames:{}};r.DOMProperty.injectDOMPropertyConfig(o);var i=function(r){function o(){n(this,o),null!=r&&r.apply(this,arguments)}return e(o,r),t(o,{createdCallback:{value:function(){this.classList.add("editor","editor-colors"),this.setAttribute("tabindex",-1),this.addEventListener("focus",this.focused.bind(this)),this.addEventListener("blur",this.blurred.bind(this))}},attachedCallback:{value:function(){console.log("atom-text-editor attached")}},detachedCallback:{value:function(){console.log("atom-text-editor detached")}},focused:{value:function(){}},blurred:{value:function(){}}}),o}(HTMLElement);document.registerElement("atom-workspace"),document.registerElement("atom-panel"),document.registerElement("atom-pane-container"),document.registerElement("atom-text-editor",{prototype:i.prototype});