diff --git a/dist/react-forecast.js b/dist/react-forecast.js index 4393352..b77aeb6 100644 --- a/dist/react-forecast.js +++ b/dist/react-forecast.js @@ -1,21 +1,18 @@ -'use strict'; - var React = require('react'); module.exports = React.createClass({ displayName: 'Forecast', - getDefaultProps: function getDefaultProps() { + getDefaultProps: function () { return { height: 245, width: '100%' }; }, - render: function render() { - var url = '//forecast.io/embed/#lat=' + this.props.latitude + '&lon=' + this.props.longitude + '&name=' + this.props.name || '' + '&color=' + this.props.color || '' + '&font=' + this.props.font || '' + '&units=' + this.props.unit || ''; + render: function () { + var url = "//forecast.io/embed/#lat=" + this.props.latitude + "&lon=" + this.props.longitude + ("&name=" + this.props.name || '') + ("&color=" + this.props.color || '') + ("&font=" + this.props.font || '') + ("&units=" + this.props.units || ''); return React.createElement('iframe', { type: 'text/html', height: this.props.height, width: this.props.width, frameBorder: '0', src: url }); } }); - diff --git a/lib/react-forecast.js b/lib/react-forecast.js index be2ebd6..dae5bac 100644 --- a/lib/react-forecast.js +++ b/lib/react-forecast.js @@ -13,10 +13,10 @@ module.exports = React.createClass({ render: function() { var url = "//forecast.io/embed/#lat=" + this.props.latitude + "&lon=" + this.props.longitude + - "&name=" + this.props.name || '' + - "&color=" + this.props.color || '' + - "&font=" + this.props.font || '' + - "&units=" + this.props.unit || ''; + ("&name=" + this.props.name || '') + + ("&color=" + this.props.color || '') + + ("&font=" + this.props.font || '') + + ("&units=" + this.props.units || ''); return (