# change/update events the first time a line is drawn

**URL:** https://discuss.codemirror.net/t/change-update-events-the-first-time-a-line-is-drawn/272
**Category:** Uncategorized
**Created:** [June 12, 2015, 3:15am UTC](https://discuss.codemirror.net/t/change-update-events-the-first-time-a-line-is-drawn/272 "2015-06-12T03:15:11Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![mikagenic](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/mikagenic/32/2982_2.png) [@mikagenic](https://discuss.codemirror.net/u/mikagenic)
#### Post date: [July 17, 2015, 4:27am UTC](https://discuss.codemirror.net/t/change-update-events-the-first-time-a-line-is-drawn/272/5 "2015-07-17T04:27:55Z")

</div>

Hi Marjin,

I coming to this again with a more clear request that I think will be very useful in general.

Is it possible for you to implement an event similar to ‘beforeChange’ that fires _before_ a line is rendered (that is renderLine is called) for the first time. (‘beforeFirstRender’ ?)

It is very useful to be able to do stuff before a line is drawn for the first time. For example it will allow indentwrap to be implemented much more cleanely without the renderLine hack.

Thank you!  
Micha

---

_[View the full topic](https://discuss.codemirror.net/t/change-update-events-the-first-time-a-line-is-drawn/272)._
