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

Commit

Permalink
v2.4.7, fixes #87
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobius1 committed Nov 21, 2018
1 parent c4d9baa commit a054c84
Show file tree
Hide file tree
Showing 6 changed files with 69 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobius1-selectr",
"version": "2.4.6",
"version": "2.4.7",
"ignore": [
".gitattributes",
"README.md"
Expand Down
2 changes: 1 addition & 1 deletion dist/selectr.min.css

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

60 changes: 58 additions & 2 deletions dist/selectr.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobius1-selectr",
"version": "2.4.6",
"version": "2.4.7",
"description": "A lightweight, dependency-free, mobile-friendly javascript select box replacement.",
"main": "dist/selectr.min.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/selectr.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Selectr 2.4.6
* Selectr 2.4.7
* http://mobius.ovh/docs/selectr
*
* Released under the MIT license
Expand Down
8 changes: 7 additions & 1 deletion src/selectr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Selectr 2.4.6
* Selectr 2.4.7
* http://mobius.ovh/docs/selectr
*
* Released under the MIT license
Expand Down Expand Up @@ -1013,6 +1013,9 @@

if (this.rendered) return;

// add instance reference (#87)
this.el.selectr = this;

// Merge defaults with user set config
this.config = util.extend(defaultConfig, config);

Expand Down Expand Up @@ -1542,6 +1545,9 @@
this.container.parentNode.replaceChild(this.el, this.container);

this.rendered = false;

// remove reference
delete this.el.selectr;
};

/**
Expand Down

0 comments on commit a054c84

Please sign in to comment.