#NEWLINE# def set_on_event( new_value , traverser ) : #NEWLINE# #INDENT# 'Ensure that on* properties are not assigned string values.' #NEWLINE# if ( isinstance ( new_value , jstypes . JSLiteral ) and isinstance ( new_value . get_literal_value ( traverser ) , types . StringTypes ) ) : #NEWLINE# #INDENT# warn ( traverser . err , filename = traverser . filename , line = traverser . line , column = traverser . position , context = traverser . context , violation_type = 'setting_on-event' )