Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

isEventHandled.js 490 B

vor 3 Jahren
123456789101112131415161718192021
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. *
  9. * @emails oncall+draft_js
  10. */
  11. 'use strict';
  12. /**
  13. * Utility method for determining whether or not the value returned
  14. * from a handler indicates that it was handled.
  15. */
  16. function isEventHandled(value) {
  17. return value === 'handled' || value === true;
  18. }
  19. module.exports = isEventHandled;