Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Conner Hewitt committed Nov 22, 2015
1 parent 45c7690 commit 1f4e194
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
10 changes: 4 additions & 6 deletions js/bioep.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,10 @@ window.bioEp = {

// Event listener initialisation for all browsers
addEvent: function (obj, event, callback) {
if (obj.addEventListener) {
if(obj.addEventListener)
obj.addEventListener(event, callback, false);
}
else if (obj.attachEvent) {
else if(obj.attachEvent)
obj.attachEvent("on" + event, callback);
}
},

// Load event listeners for the popup
Expand All @@ -210,10 +208,10 @@ window.bioEp = {
this.addEvent(document, "mouseout", function(e) {
e = e ? e : window.event;
var from = e.relatedTarget || e.toElement;

// Reliable, works on mouse exiting window and user switching active program
if (!from || from.nodeName == "HTML") {
if(!from || from.nodeName === "HTML")
bioEp.showPopup();
}
});

// Handle the popup close button
Expand Down
18 changes: 9 additions & 9 deletions js/bioep.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f4e194

Please sign in to comment.