Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #55 from asppsa/master
Browse files Browse the repository at this point in the history
Two minor changes
  • Loading branch information
Mobius1 authored Nov 20, 2017
2 parents 4edd383 + 73eed26 commit d25d1f8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/selectr.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
var plugin = "Selectr";

if (typeof define === "function" && define.amd) {
define([], factory(plugin));
define([], factory);
} else if (typeof exports === "object") {
module.exports = factory(plugin);
} else {
Expand Down Expand Up @@ -1092,13 +1092,11 @@
}
});

if (this.config.nativeDropdown || this.mobileDevice) {
this.container.addEventListener("click", function(e) {
if (e.target === that.el) {
that.toggle();
}
});
}
this.container.addEventListener("click", function(e) {
if (e.target === that.el) {
that.toggle();
}
});

var getChangedOptions = function(last, current) {
var added=[], removed=last.slice(0);
Expand Down

0 comments on commit d25d1f8

Please sign in to comment.