Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bootstrap error #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix bootstrap error #77

wants to merge 2 commits into from

Conversation

jducro
Copy link

@jducro jducro commented Jun 22, 2017

Fixes issues #73

lib/index.js Outdated
bsDropdown = BS.dropdown;
}
} catch (e) {
console.log('No bootstap');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The console.log shouldn't be necessary- not having bootstrap is supported & handled below

lib/index.js Outdated
var React = require('react');
var objectAssign = require('object-assign');
var getOptions = require('./get-options.js');
var bsMultiselect = require('./bootstrap-multiselect.js');
var bsDropdown;

var BS;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like BS is only used within try - it would help readability for the variable declaration to go there.

@jducro
Copy link
Author

jducro commented Jun 22, 2017

It looks like it doesn't really solve the problem completely, the code is runnable but webpack still log an error when building, it's still an improvment

@sman591
Copy link
Contributor

sman591 commented Jun 23, 2017

@jducro what Webpack error are you seeing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants