7.x console error

Fixed an issue causing the 'context.attr() is not a function' logged error.