Be conformant to style guide

master
Alexander Surma 2015-03-18 12:27:35 +00:00
parent 15ca247d53
commit 8ac3d5f838
1 changed files with 2 additions and 2 deletions

View File

@ -73,11 +73,11 @@ MaterialTooltip.prototype.init = function() {
if (this.element_) { if (this.element_) {
var forElId = this.element_.getAttribute('for'); var forElId = this.element_.getAttribute('for');
forEl; forEl;
if(forElId) { if (forElId) {
forEl = document.getElementById(forElId); forEl = document.getElementById(forElId);
} }
if(forEl) { if (forEl) {
forEl.addEventListener('mouseenter', this.handleMouseEnter_.bind(this), forEl.addEventListener('mouseenter', this.handleMouseEnter_.bind(this),
false); false);
forEl.addEventListener('mouseleave', this.handleMouseLeave_.bind(this)); forEl.addEventListener('mouseleave', this.handleMouseLeave_.bind(this));