Skip to content

Commit

Permalink
fix javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikiki committed Jun 30, 2020
1 parent d53512d commit 2c45c11
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/js/bulma-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ var bulmaSlider = function (_EventEmitter) {
var result = null;
var outputs = document.getElementsByTagName('output') || [];

outputs.call(function (output) {
outputs.forEach(function (output) {
if (output.htmlFor == _this2.element.getAttribute('id')) {
result = output;
return true;
Expand Down Expand Up @@ -254,7 +254,7 @@ var bulmaSlider = function (_EventEmitter) {
var instances = new Array();

var elements = isString(selector) ? document.querySelectorAll(selector) : Array.isArray(selector) ? selector : [selector];
[].forEach.call(elements, function (element) {
elements.forEach(function (element) {
if (typeof element[_this3.constructor.name] === 'undefined') {
var instance = new bulmaSlider(element, options);
element[_this3.constructor.name] = instance;
Expand Down
2 changes: 1 addition & 1 deletion dist/js/bulma-slider.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bulma-slider",
"version": "2.0.2",
"version": "2.0.3",
"description": "Display classic slider more sexy, in different colors, sizes, and states ",
"main": "dist/js/bulma-slider.min.js",
"style": "dist/css/bulma-slider.min.css",
Expand Down
4 changes: 2 additions & 2 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class bulmaSlider extends EventEmitter {
let instances = new Array();

const elements = isString(selector) ? document.querySelectorAll(selector) : Array.isArray(selector) ? selector : [selector];
[].forEach.call(elements, element => {
elements.forEach(element => {
if (typeof element[this.constructor.name] === 'undefined') {
const instance = new bulmaSlider(element, options);
element[this.constructor.name] = instance;
Expand Down Expand Up @@ -75,7 +75,7 @@ export default class bulmaSlider extends EventEmitter {
let result = null;
const outputs = document.getElementsByTagName('output') || [];

outputs.call(output => {
outputs.forEach(output => {
if (output.htmlFor == this.element.getAttribute('id')) {
result = output;
return true;
Expand Down

0 comments on commit 2c45c11

Please sign in to comment.