UNPKG

aq-web-front

Version:

A compilation framework to allow coding web frontends in a modern style.

1 lines 1.1 kB
!function(){function t(e){if("object"==typeof e){if(Array.isArray(e))return e.map(t).join(" ");if(e){var n=[];for(var o in e)e[o]&&n.push(o);return n.join(" ")}}return e+""}function e(){a.call(this),BoundObject.create(this),this.state||(this.state={});var t=r++;o[t]=this;var e=this.componentWillUnmount,n=!0;this.componentWillUnmount=function(){n=!1,delete o[t],"function"==typeof e&&e.apply(this,arguments),BoundObject(this).destroy()};var i=null;BoundObject(this).listen(function(t){(BoundObject.isBoundObject(t.newValue)||BoundObject.isBoundObject(t.oldValue))&&(i&&clearTimeout(i),i=setTimeout(function(){i=null,n&&t.obj.forceUpdate()},2))})}var n=exports.createElement;exports.createElement=function(){var e=arguments[1];return e&&"object"==typeof e&&e.className&&(e.className=t(e.className)),n.apply(React,arguments)};var o={},r=0,a=exports.Component;$$$AWF$$$.es6._inherits(e,a),e.activeComponents=function(){var t=[];for(var e in o)t.push(o[e]);return t},e.prototype.bindState=function(t){var e=this;return function(n){var o={};o[t]=n.target.value,e.setState(o)}},exports.Component=e}();