DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
  • Ecosystem
  • Infrastructure
    • can-construct
    • can-control
    • can-event
    • can-event/async/async
    • can-event/batch/batch
    • can-observation
    • can-simple-map
    • can-util
      • can-util/dom
        • ./ajax/
        • ./attr/
        • ./child-nodes/
        • ./class-name/
        • ./data/
        • ./dispatch/
        • ./document/
        • ./events/
          • ./events/attributes/
          • ./events/delegate/
          • ./events/inserted/
          • ./events/make-mutation-event/
          • ./events/removed/
        • ./frag/
        • ./mutate/
      • can-util/js
    • can-view-callbacks
    • can-view-live
    • can-view-model
    • can-view-nodelist
    • can-view-parser
    • can-view-scope
    • can-view-target
  • Legacy
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Infrastructure
  • /
  • can-util
  • /
  • can-util/dom
  • /
  • ./events/
  • /
  • ./events/removed/
  • / On this page
    • removed

      module

      This event fires when the bound element is detached or destroyed.

      • source

      events

      var events = require("can-util/dom/events/events");
      require("can-util/dom/events/removed/removed");
      
      var foo = document.createElement("div");
      document.body.appendChild(foo);
      
      var log = function() { console.log("removed event fired"); }
      events.addEventListener.call(foo, "removed", log);
      
      document.body.removeChild(foo); // remove event fired
      
      

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.