web: Fix for PropertyVar.toggleClass