Skip to content

Commit

Permalink
v0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulLeCam committed Oct 21, 2015
1 parent 7c1cdb6 commit 1107926
Show file tree
Hide file tree
Showing 10 changed files with 12,567 additions and 12,378 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.8.1 (21/10/15)

Fix `PropTypes` export.

## v0.8.0 (07/10/15)

Changes from v0.7.0:
Expand Down
58 changes: 30 additions & 28 deletions dist/react-leaflet.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ return /******/ (function(modules) { // webpackBootstrap
value: true
});

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

var _leaflet = __webpack_require__(1);
Expand All @@ -68,9 +70,9 @@ return /******/ (function(modules) { // webpackBootstrap

var _types = __webpack_require__(2);

var _types2 = _interopRequireDefault(_types);
var _PropTypes = _interopRequireWildcard(_types);

exports.PropTypes = _types2['default'];
exports.PropTypes = _PropTypes;

var _BaseTileLayer2 = __webpack_require__(7);

Expand Down Expand Up @@ -1421,6 +1423,32 @@ return /******/ (function(modules) { // webpackBootstrap
}

_createClass(MapComponent, [{
key: 'componentWillMount',
value: function componentWillMount() {
this._leafletEvents = this.extractLeafletEvents(this.props);
}
}, {
key: 'componentDidMount',
value: function componentDidMount() {
this.bindLeafletEvents(this._leafletEvents);
}
}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(nextProps) {
var next = this.extractLeafletEvents(nextProps);
this._leafletEvents = this.bindLeafletEvents(next, this._leafletEvents);
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
var el = this.leafletElement;
if (!el) return;

(0, _lodashCollectionForEach2['default'])(this._leafletEvents, function (cb, ev) {
el.off(ev, cb);
});
}
}, {
key: 'getLeafletElement',
value: function getLeafletElement() {
return this.leafletElement;
Expand Down Expand Up @@ -1470,32 +1498,6 @@ return /******/ (function(modules) { // webpackBootstrap
var el = this.leafletElement;
if (el) el.fire(type, data);
}
}, {
key: 'componentWillMount',
value: function componentWillMount() {
this._leafletEvents = this.extractLeafletEvents(this.props);
}
}, {
key: 'componentDidMount',
value: function componentDidMount() {
this.bindLeafletEvents(this._leafletEvents);
}
}, {
key: 'componentWillReceiveProps',
value: function componentWillReceiveProps(nextProps) {
var next = this.extractLeafletEvents(nextProps);
this._leafletEvents = this.bindLeafletEvents(next, this._leafletEvents);
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
var el = this.leafletElement;
if (!el) return;

(0, _lodashCollectionForEach2['default'])(this._leafletEvents, function (cb, ev) {
el.off(ev, cb);
});
}
}]);

return MapComponent;
Expand Down
4 changes: 2 additions & 2 deletions dist/react-leaflet.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 1107926

Please sign in to comment.