I am iterating over object properties with 'for in'. However, using JSLint's validation I receive the following warning: Unexpected 'for'.
Code snippet (Updated as requested):
var event = {
data: {
new_value: self.get_frequency_type()
}
};
// Go through each condition and check for event listeners
var key;
for(key in self.conditions) {
if(self.conditions.hasOwnProperty(key)) {
}
}
Is there any other way to iterate over object properties without triggering this warning?