this affair could well turn out like the '15 , when bobbing johnny , earl of mar , in a fit of pique when he was out of favour with the court of george i in london , had thrown in his lot with the jacobites .