Skip to content

Commit

Permalink
Minor code cleanup and moving V4 into same /dist folder, as suggest…
Browse files Browse the repository at this point in the history
…ed by jsdelivr jsdelivr/jsdelivr#16243
  • Loading branch information
thednp committed Feb 9, 2017
1 parent 80908ca commit 14aa40c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
return child[clientHeight] + parseInt( btp ) + parseInt( btb ) + parseInt( mtp ) + parseInt( mbp );
},
getMaxHeight = function(parent) { // get collapse trueHeight and border
var parentHeight = 0, style, margin;
var parentHeight = 0;
for (var k = 0, ll = parent.children[length]; k < ll; k++) {
parentHeight += getOuterHeight(parent.children[k]);
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion dist/bootstrap-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
return child[clientHeight] + parseInt( btp ) + parseInt( btb ) + parseInt( mtp ) + parseInt( mbp );
},
getMaxHeight = function(parent) { // get collapse trueHeight and border
var parentHeight = 0, style, margin;
var parentHeight = 0;
for (var k = 0, ll = parent.children[length]; k < ll; k++) {
parentHeight += getOuterHeight(parent.children[k]);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/V3/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ var globalObject = typeof global !== 'undefined' ? global : this||window,
return child[clientHeight] + parseInt( btp ) + parseInt( btb ) + parseInt( mtp ) + parseInt( mbp );
},
getMaxHeight = function(parent) { // get collapse trueHeight and border
var parentHeight = 0, style, margin;
var parentHeight = 0;
for (var k = 0, ll = parent.children[length]; k < ll; k++) {
parentHeight += getOuterHeight(parent.children[k]);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/V4/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ var globalObject = typeof global !== 'undefined' ? global : this||window,
return child[clientHeight] + parseInt( btp ) + parseInt( btb ) + parseInt( mtp ) + parseInt( mbp );
},
getMaxHeight = function(parent) { // get collapse trueHeight and border
var parentHeight = 0, style, margin;
var parentHeight = 0;
for (var k = 0, ll = parent.children[length]; k < ll; k++) {
parentHeight += getOuterHeight(parent.children[k]);
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "node build.js > dist/bootstrap-native.js && npm run build-min",
"build-v4": "node build-v4.js > dist-v4/bootstrap-native.js && npm run build-v4-min",
"build-v4": "node build-v4.js > dist/bootstrap-native-v4.js && npm run build-v4-min",
"build-min": "node build.js -m > dist/bootstrap-native.min.js",
"build-v4-min": "node build-v4.js -m > dist-v4/bootstrap-native.min.js",
"build-v4-min": "node build-v4.js -m > dist/bootstrap-native-v4.min.js",
"watch": "onchange \"lib/*\" -i -- npm run build"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion v4.html
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,6 @@ <h4 id="three">three</h4>
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://maxcdn.bootstrapcdn.com/js/ie10-viewport-bug-workaround.js"></script>
<script type="text/javascript" src="./dist-v4/bootstrap-native.js"></script>
<script type="text/javascript" src="./dist/bootstrap-native-v4.js"></script>
</body>
</html>

0 comments on commit 14aa40c

Please sign in to comment.