Reference Element Class in Plugin Editor

I added instance.data.init = 1 into the initialize function and then wrapped my update function in an if statement:

if (instance.data.init = 1) {

\\ Run Event Listener

instance.data.init = 0

}

However, it’s still firing twice. Any idea why that would be?