Sorry, I think the name of the "element" param should change to "selector".
So _waitForTransitionEnd: function(element) => _waitForTransitionEnd: function(selector)