I am implementing BeforeFeature hook and I want to know which feature I am in
var hooks = function () {
this.registerHandler('BeforeFeature', function (event, callback) {
console.log(event.feature ????)
});
};
When I debug, on the console, event.feature is undefined. I can do event.getName(), then obviously I get "BeforeFeature" as result. Anyone knows how I can get the feature that it's going to evaluate? Thanks.