diff --git a/ScrollBlocker.js b/ScrollBlocker.js index 68db662..6887061 100644 --- a/ScrollBlocker.js +++ b/ScrollBlocker.js @@ -1,6 +1,4 @@ -/** @jsx React.DOM */ var React = require('react'); -var assign = require('react/lib/Object.assign'); var blockerStyle = { pointerEvents: 'none' @@ -21,14 +19,14 @@ var ScrollBlocker = React.createClass({displayName: "ScrollBlocker", }, render: function () { - var { style, active, ...other } = this.props; + var $__0= this.props,style=$__0.style,active=$__0.active,other=(function(source, exclusion) {var rest = {};var hasOwn = Object.prototype.hasOwnProperty;if (source == null) {throw new TypeError();}for (var key in source) {if (hasOwn.call(source, key) && !hasOwn.call(exclusion, key)) {rest[key] = source[key];}}return rest;})($__0,{style:1,active:1}); return ( - React.createElement("div", React.__spread({}, other, {style: assign({}, style, active && blockerStyle)}), + React.createElement("div", React.__spread({}, other, {style: Object.assign({}, style, active && blockerStyle)}), this.props.children ) ); } }); -module.exports = ScrollBlocker; \ No newline at end of file +module.exports = ScrollBlocker; diff --git a/jsx/ScrollBlocker.jsx b/jsx/ScrollBlocker.jsx index 6d4fb6b..f003d3c 100644 --- a/jsx/ScrollBlocker.jsx +++ b/jsx/ScrollBlocker.jsx @@ -1,6 +1,4 @@ -/** @jsx React.DOM */ var React = require('react'); -var assign = require('react/lib/Object.assign'); var blockerStyle = { pointerEvents: 'none' @@ -24,11 +22,11 @@ var ScrollBlocker = React.createClass({ var { style, active, ...other } = this.props; return ( -