⌈⌋ ⎇ branch:  Bitrhythm


Hex Artifact Content

Artifact 36242f64fe520961b106eecb00e739dd4930f2c03766496066887870e5d3bc7e:


0000: 69 6d 70 6f 72 74 20 65 78 74 65 6e 64 20 66 72  import extend fr
0010: 6f 6d 20 27 2e 2f 62 72 6f 77 73 65 72 2f 63 6f  om './browser/co
0020: 6d 6d 6f 6e 2f 75 74 69 6c 2f 6d 69 73 63 2f 65  mmon/util/misc/e
0030: 78 74 65 6e 64 27 0a 69 6d 70 6f 72 74 20 63 72  xtend'.import cr
0040: 65 61 74 65 20 66 72 6f 6d 20 27 2e 2f 62 72 6f  eate from './bro
0050: 77 73 65 72 2f 63 6f 6d 6d 6f 6e 2f 75 74 69 6c  wser/common/util
0060: 2f 6d 69 73 63 2f 6f 62 6a 65 63 74 2d 63 72 65  /misc/object-cre
0070: 61 74 65 27 0a 69 6d 70 6f 72 74 20 7b 20 62 72  ate'.import { br
0080: 61 63 6b 65 74 73 20 7d 20 66 72 6f 6d 20 27 72  ackets } from 'r
0090: 69 6f 74 2d 74 6d 70 6c 27 0a 0a 65 78 70 6f 72  iot-tmpl'..expor
00a0: 74 20 64 65 66 61 75 6c 74 20 65 78 74 65 6e 64  t default extend
00b0: 28 63 72 65 61 74 65 28 62 72 61 63 6b 65 74 73  (create(brackets
00c0: 2e 73 65 74 74 69 6e 67 73 29 2c 20 7b 0a 20 20  .settings), {.  
00d0: 73 6b 69 70 41 6e 6f 6e 79 6d 6f 75 73 54 61 67  skipAnonymousTag
00e0: 73 3a 20 74 72 75 65 2c 0a 20 20 2f 2f 20 74 68  s: true,.  // th
00f0: 65 20 22 76 61 6c 75 65 22 20 61 74 74 72 69 62  e "value" attrib
0100: 75 74 65 73 20 77 69 6c 6c 20 62 65 20 70 72 65  utes will be pre
0110: 73 65 72 76 65 64 0a 20 20 6b 65 65 70 56 61 6c  served.  keepVal
0120: 75 65 41 74 74 72 69 62 75 74 65 73 3a 20 66 61  ueAttributes: fa
0130: 6c 73 65 2c 0a 20 20 2f 2f 20 68 61 6e 64 6c 65  lse,.  // handle
0140: 20 74 68 65 20 61 75 74 6f 20 75 70 64 61 74 65   the auto update
0150: 73 20 6f 6e 20 61 6e 79 20 44 4f 4d 20 65 76 65  s on any DOM eve
0160: 6e 74 0a 20 20 61 75 74 6f 55 70 64 61 74 65 3a  nt.  autoUpdate:
0170: 20 74 72 75 65 0a 7d 29                           true.})