f0359c35b43d7425ab8b0367c9b4af4d42d0e77afc287d7875fe1f6b3c09c39ddd783ef43bfae87b52ef6f119f9ec67ce7a502f6fddef8dce41c1358a0f186 530 B

12345678910111213141516
  1. /* @flow */
  2. import { addAttr } from 'compiler/helpers'
  3. import { RECYCLE_LIST_MARKER } from 'weex/util/index'
  4. // mark components as inside recycle-list so that we know we need to invoke
  5. // their special @render function instead of render in create-component.js
  6. export function postTransformComponent (
  7. el: ASTElement,
  8. options: WeexCompilerOptions
  9. ) {
  10. // $flow-disable-line (we know isReservedTag is there)
  11. if (!options.isReservedTag(el.tag) && el.tag !== 'cell-slot') {
  12. addAttr(el, RECYCLE_LIST_MARKER, 'true')
  13. }
  14. }