Skip to content

Commit

Permalink
Merge 8ac6400 into b5c808a
Browse files Browse the repository at this point in the history
  • Loading branch information
JostCrow committed Dec 8, 2017
2 parents b5c808a + 8ac6400 commit 82b33ae
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/dual-listbox.js

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

4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ <h2 class="subtitle">Add options and add eventListeners <span class="source" dat
searchPlaceholder: 'search numbers'
});
dlb2.addEventListener('added', function(event){
document.querySelector('.changed-element').innerHTML = event.addedElement.outerHTML;
document.querySelector('.changed-element').innerHTML = event.target.outerHTML;
});
dlb2.addEventListener('removed', function(event){
document.querySelector('.changed-element').innerHTML = event.removedElement.outerHTML;
document.querySelector('.changed-element').innerHTML = event.target.outerHTML;
});

var sources = document.querySelectorAll('.source');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dual-listbox",
"version": "1.0.9",
"version": "1.1.0",
"description": "Dual listbox for multi-select elements",
"main": "dist/dual-listbox.js",
"directories": {
Expand Down

0 comments on commit 82b33ae

Please sign in to comment.