Artifact
5cafe0aba3fdcaf79e0e1db9d277ecef5b965306b3f1f35e78c52e6e226a6aab:
0000: 3c 73 68 6f 75 6c 64 2d 75 70 64 61 74 65 3e 0a <should-update>.
0010: 20 20 3c 70 20 72 65 66 3d 22 63 6f 75 6e 74 22 <p ref="count"
0020: 3e 7b 20 63 6f 75 6e 74 20 7d 3c 2f 70 3e 0a 0a >{ count }</p>..
0030: 20 20 74 68 69 73 2e 63 6f 75 6e 74 20 3d 20 30 this.count = 0
0040: 0a 0a 20 20 73 68 6f 75 6c 64 55 70 64 61 74 65 .. shouldUpdate
0050: 28 64 61 74 61 29 20 7b 20 72 65 74 75 72 6e 20 (data) { return
0060: 64 61 74 61 20 7d 0a 0a 20 20 74 68 69 73 2e 6f data }.. this.o
0070: 6e 28 27 75 70 64 61 74 65 27 2c 20 66 75 6e 63 n('update', func
0080: 74 69 6f 6e 28 29 20 7b 0a 20 20 20 20 74 68 69 tion() {. thi
0090: 73 2e 63 6f 75 6e 74 20 2b 2b 0a 20 20 7d 29 0a s.count ++. }).
00a0: 3c 2f 73 68 6f 75 6c 64 2d 75 70 64 61 74 65 3e </should-update>
00b0: 0a .