Created
May 5, 2015 14:45
-
-
Save AmilKey/5abaa44e39e755d36b3b to your computer and use it in GitHub Desktop.
hooks of ember view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// HOOKS | |
| var noop = function () {}; | |
| Renderer.prototype.willCreateElement = noop; // inBuffer | |
| Renderer.prototype.createElement = noop; // renderToBuffer or createElement | |
| Renderer.prototype.didCreateElement = noop; // hasElement | |
| Renderer.prototype.willInsertElement = noop; // will place into DOM | |
| Renderer.prototype.didInsertElement = noop; // inDOM // placed into DOM | |
| Renderer.prototype.willRemoveElement = noop; // removed from DOM willDestroyElement currently paired with didInsertElement | |
| Renderer.prototype.willDestroyElement = noop; // willClearRender (currently balanced with render) this is now paired with createElement | |
| Renderer.prototype.didDestroyElement = noop; // element destroyed so view.destroy shouldn't try to remove it removedFromDOM | |
| Renderer.prototype.destroyView = noop; | |
| Renderer.prototype.childViews = noop; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment