Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

combine-html-extensions.js 625B

12345678910111213141516171819202122232425262728293031323334
  1. 'use strict'
  2. var hasOwnProperty = require('../constant/has-own-property.js')
  3. function combineHtmlExtensions(extensions) {
  4. var handlers = {}
  5. var index = -1
  6. while (++index < extensions.length) {
  7. extension(handlers, extensions[index])
  8. }
  9. return handlers
  10. }
  11. function extension(handlers, extension) {
  12. var hook
  13. var left
  14. var right
  15. var type
  16. for (hook in extension) {
  17. left = hasOwnProperty.call(handlers, hook)
  18. ? handlers[hook]
  19. : (handlers[hook] = {})
  20. right = extension[hook]
  21. for (type in right) {
  22. left[type] = right[type]
  23. }
  24. }
  25. }
  26. module.exports = combineHtmlExtensions