Skip to content

Commit

Permalink
latest drive-in core
Browse files Browse the repository at this point in the history
  • Loading branch information
mshick committed May 13, 2015
1 parent 866d8a6 commit fbd6231
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 27 deletions.
23 changes: 0 additions & 23 deletions dist/react-drive-in.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,34 +537,12 @@ var DriveIn = (function (_Jvent) {
}
}
},
_prepareContainer: {
value: function _prepareContainer() {
// var containerH = getHeight();

// if (document.body.offsetHeight < containerH) {
// setStyles(document.body, {
// height: "auto"
// });

// if (containerH > document.body.offsetHeight) {
// setStyles(document.body, {
// height: "100%"
// });
// setStyles(document.documentElement, {
// height: "100%"
// });
// }
// }
}
},
init: {
value: function init(options) {
options = options || {};

this.isTouch = options.isTouch !== undefined ? options.isTouch : "ontouchstart" in window || !!options.slideshow;

this._prepareContainer();

this.parentEl = this._setParent(options.el);
var mediaEl = this._createMediaEl();
this.parentEl.appendChild(mediaEl);
Expand Down Expand Up @@ -731,7 +709,6 @@ var DriveIn = (function (_Jvent) {
})(Jvent);

module.exports = DriveIn;

},{"./playlist":3,"./timer":4,"./utils":5,"jvent":6}],3:[function(require,module,exports){
"use strict";

Expand Down
2 changes: 1 addition & 1 deletion dist/react-drive-in.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/react-drive-in.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var ReactDriveIn = (function (_React$Component) {
_classCallCheck(this, ReactDriveIn);

_get(Object.getPrototypeOf(ReactDriveIn.prototype), 'constructor', this).call(this, props);
var foo = 'bar';

this.state = {
className: 'drive-in',
mute: true,
Expand Down Expand Up @@ -201,7 +201,7 @@ var ReactDriveIn = (function (_React$Component) {
value: function render() {
return _react2['default'].createElement(
'div',
{ ref: 'wrap', id: 'drive-in-wrap', className: this.props.className },
{ ref: 'wrap', className: this.props.className + ' drive-in-wrap' },
_react2['default'].createElement('div', { ref: 'media', className: 'drive-in-media' })
);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
"react": "global:React"
},
"dependencies": {
"drive-in": "^1.3.4"
"drive-in": "^1.4.1"
}
}

0 comments on commit fbd6231

Please sign in to comment.