Skip to content

Commit

Permalink
Fix for #104
Browse files Browse the repository at this point in the history
  • Loading branch information
thednp committed Jan 26, 2017
1 parent d8462ac commit a52b253
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap.native",
"version": "1.2.0",
"version": "1.3.0",
"homepage": "http://thednp.github.io/bootstrap.native/",
"authors": [
"dnp_theme"
Expand Down
8 changes: 4 additions & 4 deletions dist/bootstrap-native.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Native Javascript for Bootstrap 3 v1.2.0 | © dnp_theme | MIT-License
// Native Javascript for Bootstrap 3 v1.3.0 | © dnp_theme | MIT-License
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD support:
Expand Down Expand Up @@ -988,7 +988,7 @@

// strings
component = 'modal',
static = 'static',
staticString = 'static',
paddingLeft = 'paddingLeft',
paddingRight = 'paddingRight'
modalBackdropString = 'modal-backdrop';
Expand All @@ -997,7 +997,7 @@
options = options || {};

this[keyboard] = options[keyboard] === false || modal[getAttribute](dataKeyboard) === 'false' ? false : true;
this[backdrop] = options[backdrop] === static || modal[getAttribute](databackdrop) === static ? static : true;
this[backdrop] = options[backdrop] === staticString || modal[getAttribute](databackdrop) === staticString ? staticString : true;
this[backdrop] = options[backdrop] === false || modal[getAttribute](databackdrop) === 'false' ? false : this[backdrop];
this[duration] = (isIE && isIE < 10) ? 50 : (options[duration] || parseInt(modal[getAttribute](dataDuration)) || 300); // the default modal fade duration option
this[content] = options[content]; // JavaScript only
Expand Down Expand Up @@ -1098,7 +1098,7 @@
var clickTarget = e[target];
if ( !e.defaultPrevented && open && (clickTarget[parentNode][getAttribute](dataDismiss) === component
|| clickTarget[getAttribute](dataDismiss) === component
|| (clickTarget === modal && self[backdrop] !== static) ) ) {
|| (clickTarget === modal && self[backdrop] !== staticString) ) ) {
self.hide(); relatedTarget = null;
e.preventDefault();
setTimeout(function(){ e.defaultPrevented = false; }, 50);
Expand Down
Loading

0 comments on commit a52b253

Please sign in to comment.