Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

28 строки
693 B

  1. "use strict";
  2. exports.__esModule = true;
  3. exports.notify = notify;
  4. exports.instanceId = instanceId;
  5. exports.isFirstFocusedRender = isFirstFocusedRender;
  6. var idCount = 0;
  7. function uniqueId(prefix) {
  8. return '' + ((prefix == null ? '' : prefix) + ++idCount);
  9. }
  10. function notify(handler, args) {
  11. handler && handler.apply(null, [].concat(args));
  12. }
  13. function instanceId(component, suffix) {
  14. if (suffix === void 0) {
  15. suffix = '';
  16. }
  17. component.__id || (component.__id = uniqueId('rw_'));
  18. return (component.props.id || component.__id) + suffix;
  19. }
  20. function isFirstFocusedRender(component) {
  21. return component._firstFocus || component.state.focused && (component._firstFocus = true);
  22. }