Hey Guys,
So today I started a new plugin for a customer and an old annoying issue that was fixed in the past has come up again!
In the past when we run this code in the initialize
or update
function used to work
function (instance, properties, context) {
console.log('update')
}
Now it does not work till you do this !!!
function(instance, properties, context) {
console.log('update')
}
Did you notice the difference? Its the SPACE right after the word function
I use a Linter (code and syntax checker) ESLint
and it tells me that the syntax with space is right. Actually, they are both right, and in my opionion, the space is much neater.
@sam8 do you have a perspective on this? What should I do for all the older plugins that I have when they need an update? Since both the syntax use cases are right why don’t both of them run?
Appreciate any input as I have literly wasted a full hour to debug this.