Skip to content

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 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