Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
renderjs renderjs
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 1
    • Merge requests 1
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • nexedi
  • renderjsrenderjs
  • Merge requests
  • !6

Merged
Created Oct 11, 2016 by Romain Courteaud@romain🐙Owner

onEvent, onStateChange, declareJob, element

  • Overview 2
  • Commits 4
  • Changes 4

4 main changes are provided by this merge request.

  1. deprecate getElement method. Access the DOM with the .element property directly
  2. add onEvent service. It simplify the DOM event handler, by no manually writing loopEventListener. The event target will be the gadget event.
  3. add declareJob, which are method with a deferred execution, triggered when the gadget is inside the DOM
  4. add a gadget state property. It can be initialized with the setState class method. Gadget state must be modified with the changeState method, which can trigger an onStateChange callback if a modification has been detected

/cc @cedric.leninivin @vincentB

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: wip
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7