Skip to content

Fix bootstrap error#77

Open
jducro wants to merge 2 commits into
skratchdot:masterfrom
jducro:master
Open

Fix bootstrap error#77
jducro wants to merge 2 commits into
skratchdot:masterfrom
jducro:master

Conversation

@jducro

@jducro jducro commented Jun 22, 2017

Copy link
Copy Markdown

Fixes issues #73

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

Copy link
Copy Markdown
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

Comment thread lib/index.js Outdated
var bsMultiselect = require('./bootstrap-multiselect.js');
var bsDropdown;

var BS;

Copy link
Copy Markdown
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

jducro commented Jun 22, 2017

Copy link
Copy Markdown
Author

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

sman591 commented Jun 23, 2017

Copy link
Copy Markdown
Contributor

@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