Skip to content

Commit f896501

Browse files
committed
v0.2.2
1 parent 033dfdd commit f896501

File tree

3 files changed

+86
-92
lines changed

3 files changed

+86
-92
lines changed

example/build/app.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var examples = (
1919

2020
React.render(examples, document.getElementById("app"));
2121

22-
},{"./events":"/Users/paul/Dev/PaulLeCam/react-leaflet/example/events.js","./simple":"/Users/paul/Dev/PaulLeCam/react-leaflet/example/simple.js","./vector-layers":"/Users/paul/Dev/PaulLeCam/react-leaflet/example/vector-layers.js","react":"react"}],"/Users/paul/Dev/PaulLeCam/react-leaflet/example/events.js":[function(require,module,exports){
22+
},{"./events":"/Users/paul/dev/PaulLeCam/react-leaflet/example/events.js","./simple":"/Users/paul/dev/PaulLeCam/react-leaflet/example/simple.js","./vector-layers":"/Users/paul/dev/PaulLeCam/react-leaflet/example/vector-layers.js","react":"react"}],"/Users/paul/dev/PaulLeCam/react-leaflet/example/events.js":[function(require,module,exports){
2323
var React = require("react");
2424
var $__0= require("react-leaflet"),Map=$__0.Map,TileLayer=$__0.TileLayer,Marker=$__0.Marker,Popup=$__0.Popup;
2525

@@ -75,7 +75,7 @@ module.exports = React.createClass({
7575
}
7676
});
7777

78-
},{"react":"react","react-leaflet":"react-leaflet"}],"/Users/paul/Dev/PaulLeCam/react-leaflet/example/simple.js":[function(require,module,exports){
78+
},{"react":"react","react-leaflet":"react-leaflet"}],"/Users/paul/dev/PaulLeCam/react-leaflet/example/simple.js":[function(require,module,exports){
7979
var React = require("react");
8080
var $__0= require("react-leaflet"),Map=$__0.Map,TileLayer=$__0.TileLayer,Marker=$__0.Marker,Popup=$__0.Popup;
8181

@@ -108,7 +108,7 @@ module.exports = React.createClass({
108108
}
109109
});
110110

111-
},{"react":"react","react-leaflet":"react-leaflet"}],"/Users/paul/Dev/PaulLeCam/react-leaflet/example/vector-layers.js":[function(require,module,exports){
111+
},{"react":"react","react-leaflet":"react-leaflet"}],"/Users/paul/dev/PaulLeCam/react-leaflet/example/vector-layers.js":[function(require,module,exports){
112112
var React = require("react");
113113
var $__0=
114114
require("react-leaflet"),Circle=$__0.Circle,CircleMarker=$__0.CircleMarker,Map=$__0.Map,MultiPolygon=$__0.MultiPolygon,MultiPolyline=$__0.MultiPolyline,Polygon=$__0.Polygon,Polyline=$__0.Polyline,Popup=$__0.Popup,Rectangle=$__0.Rectangle,TileLayer=$__0.TileLayer;

example/build/dependencies.js

+75-81
Original file line numberDiff line numberDiff line change
@@ -2,69 +2,39 @@ require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof requ
22
// shim for using process in browser
33

44
var process = module.exports = {};
5+
var queue = [];
6+
var draining = false;
57

6-
process.nextTick = (function () {
7-
var canSetImmediate = typeof window !== 'undefined'
8-
&& window.setImmediate;
9-
var canMutationObserver = typeof window !== 'undefined'
10-
&& window.MutationObserver;
11-
var canPost = typeof window !== 'undefined'
12-
&& window.postMessage && window.addEventListener
13-
;
14-
15-
if (canSetImmediate) {
16-
return function (f) { return window.setImmediate(f) };
17-
}
18-
19-
var queue = [];
20-
21-
if (canMutationObserver) {
22-
var hiddenDiv = document.createElement("div");
23-
var observer = new MutationObserver(function () {
24-
var queueList = queue.slice();
25-
queue.length = 0;
26-
queueList.forEach(function (fn) {
27-
fn();
28-
});
29-
});
30-
31-
observer.observe(hiddenDiv, { attributes: true });
32-
33-
return function nextTick(fn) {
34-
if (!queue.length) {
35-
hiddenDiv.setAttribute('yes', 'no');
36-
}
37-
queue.push(fn);
38-
};
8+
function drainQueue() {
9+
if (draining) {
10+
return;
3911
}
40-
41-
if (canPost) {
42-
window.addEventListener('message', function (ev) {
43-
var source = ev.source;
44-
if ((source === window || source === null) && ev.data === 'process-tick') {
45-
ev.stopPropagation();
46-
if (queue.length > 0) {
47-
var fn = queue.shift();
48-
fn();
49-
}
50-
}
51-
}, true);
52-
53-
return function nextTick(fn) {
54-
queue.push(fn);
55-
window.postMessage('process-tick', '*');
56-
};
12+
draining = true;
13+
var currentQueue;
14+
var len = queue.length;
15+
while(len) {
16+
currentQueue = queue;
17+
queue = [];
18+
var i = -1;
19+
while (++i < len) {
20+
currentQueue[i]();
21+
}
22+
len = queue.length;
5723
}
58-
59-
return function nextTick(fn) {
60-
setTimeout(fn, 0);
61-
};
62-
})();
24+
draining = false;
25+
}
26+
process.nextTick = function (fun) {
27+
queue.push(fun);
28+
if (!draining) {
29+
setTimeout(drainQueue, 0);
30+
}
31+
};
6332

6433
process.title = 'browser';
6534
process.browser = true;
6635
process.env = {};
6736
process.argv = [];
37+
process.version = ''; // empty string to avoid regexp issues
6838

6939
function noop() {}
7040

@@ -85,6 +55,7 @@ process.cwd = function () { return '/' };
8555
process.chdir = function (dir) {
8656
throw new Error('process.chdir is not supported');
8757
};
58+
process.umask = function() { return 0; };
8859

8960
},{}],2:[function(require,module,exports){
9061
/**
@@ -466,7 +437,6 @@ module.exports = CSSCore;
466437
*/
467438
var isUnitlessNumber = {
468439
columnCount: true,
469-
fillOpacity: true,
470440
flex: true,
471441
flexGrow: true,
472442
flexShrink: true,
@@ -478,7 +448,11 @@ var isUnitlessNumber = {
478448
orphans: true,
479449
widows: true,
480450
zIndex: true,
481-
zoom: true
451+
zoom: true,
452+
453+
// SVG-related properties
454+
fillOpacity: true,
455+
strokeOpacity: true
482456
};
483457

484458
/**
@@ -3718,7 +3692,11 @@ var HTMLDOMPropertyConfig = {
37183692
draggable: null,
37193693
encType: null,
37203694
form: MUST_USE_ATTRIBUTE,
3695+
formAction: MUST_USE_ATTRIBUTE,
3696+
formEncType: MUST_USE_ATTRIBUTE,
3697+
formMethod: MUST_USE_ATTRIBUTE,
37213698
formNoValidate: HAS_BOOLEAN_VALUE,
3699+
formTarget: MUST_USE_ATTRIBUTE,
37223700
frameBorder: MUST_USE_ATTRIBUTE,
37233701
height: MUST_USE_ATTRIBUTE,
37243702
hidden: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
@@ -3733,6 +3711,8 @@ var HTMLDOMPropertyConfig = {
37333711
list: MUST_USE_ATTRIBUTE,
37343712
loop: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
37353713
manifest: MUST_USE_ATTRIBUTE,
3714+
marginHeight: null,
3715+
marginWidth: null,
37363716
max: null,
37373717
maxLength: MUST_USE_ATTRIBUTE,
37383718
media: MUST_USE_ATTRIBUTE,
@@ -4464,7 +4444,7 @@ if ("production" !== process.env.NODE_ENV) {
44644444

44654445
// Version exists only in the open-source version of React, not in Facebook's
44664446
// internal version.
4467-
React.version = '0.12.0';
4447+
React.version = '0.12.2';
44684448

44694449
module.exports = React;
44704450

@@ -7146,7 +7126,7 @@ var ReactCompositeComponentMixin = {
71467126
boundMethod.__reactBoundArguments = null;
71477127
var componentName = component.constructor.displayName;
71487128
var _bind = boundMethod.bind;
7149-
boundMethod.bind = function(newThis ) {var args=Array.prototype.slice.call(arguments,1);
7129+
boundMethod.bind = function(newThis ) {for (var args=[],$__0=1,$__1=arguments.length;$__0<$__1;$__0++) args.push(arguments[$__0]);
71507130
// User is trying to bind() an autobound method; we effectively will
71517131
// ignore the value of "this" that the user is trying to use, so
71527132
// let's warn.
@@ -9495,7 +9475,7 @@ var ReactDefaultPerf = {
94959475
},
94969476

94979477
measure: function(moduleName, fnName, func) {
9498-
return function() {var args=Array.prototype.slice.call(arguments,0);
9478+
return function() {for (var args=[],$__0=0,$__1=arguments.length;$__0<$__1;$__0++) args.push(arguments[$__0]);
94999479
var totalTime;
95009480
var rv;
95019481
var start;
@@ -9999,7 +9979,7 @@ ReactElement.createElement = function(type, config, children) {
99999979
}
100009980

100019981
// Resolve default props
10002-
if (type.defaultProps) {
9982+
if (type && type.defaultProps) {
100039983
var defaultProps = type.defaultProps;
100049984
for (propName in defaultProps) {
100059985
if (typeof props[propName] === 'undefined') {
@@ -10068,6 +10048,7 @@ module.exports = ReactElement;
1006810048

1006910049
}).call(this,require('_process'))
1007010050
},{"./ReactContext":41,"./ReactCurrentOwner":42,"./warning":161,"_process":1}],59:[function(require,module,exports){
10051+
(function (process){
1007110052
/**
1007210053
* Copyright 2014, Facebook, Inc.
1007310054
* All rights reserved.
@@ -10093,6 +10074,7 @@ var ReactPropTypeLocations = require("./ReactPropTypeLocations");
1009310074
var ReactCurrentOwner = require("./ReactCurrentOwner");
1009410075

1009510076
var monitorCodeUse = require("./monitorCodeUse");
10077+
var warning = require("./warning");
1009610078

1009710079
/**
1009810080
* Warn if there's no key explicitly set on dynamic arrays of children or
@@ -10290,6 +10272,15 @@ function checkPropTypes(componentName, propTypes, props, location) {
1029010272
var ReactElementValidator = {
1029110273

1029210274
createElement: function(type, props, children) {
10275+
// We warn in this case but don't throw. We expect the element creation to
10276+
// succeed and there will likely be errors in render.
10277+
("production" !== process.env.NODE_ENV ? warning(
10278+
type != null,
10279+
'React.createElement: type should not be null or undefined. It should ' +
10280+
'be a string (for DOM elements) or a ReactClass (for composite ' +
10281+
'components).'
10282+
) : null);
10283+
1029310284
var element = ReactElement.createElement.apply(this, arguments);
1029410285

1029510286
// The result can be nullish if a mock or a custom function is used.
@@ -10302,22 +10293,24 @@ var ReactElementValidator = {
1030210293
validateChildKeys(arguments[i], type);
1030310294
}
1030410295

10305-
var name = type.displayName;
10306-
if (type.propTypes) {
10307-
checkPropTypes(
10308-
name,
10309-
type.propTypes,
10310-
element.props,
10311-
ReactPropTypeLocations.prop
10312-
);
10313-
}
10314-
if (type.contextTypes) {
10315-
checkPropTypes(
10316-
name,
10317-
type.contextTypes,
10318-
element._context,
10319-
ReactPropTypeLocations.context
10320-
);
10296+
if (type) {
10297+
var name = type.displayName;
10298+
if (type.propTypes) {
10299+
checkPropTypes(
10300+
name,
10301+
type.propTypes,
10302+
element.props,
10303+
ReactPropTypeLocations.prop
10304+
);
10305+
}
10306+
if (type.contextTypes) {
10307+
checkPropTypes(
10308+
name,
10309+
type.contextTypes,
10310+
element._context,
10311+
ReactPropTypeLocations.context
10312+
);
10313+
}
1032110314
}
1032210315
return element;
1032310316
},
@@ -10335,7 +10328,8 @@ var ReactElementValidator = {
1033510328

1033610329
module.exports = ReactElementValidator;
1033710330

10338-
},{"./ReactCurrentOwner":42,"./ReactElement":58,"./ReactPropTypeLocations":78,"./monitorCodeUse":151}],60:[function(require,module,exports){
10331+
}).call(this,require('_process'))
10332+
},{"./ReactCurrentOwner":42,"./ReactElement":58,"./ReactPropTypeLocations":78,"./monitorCodeUse":151,"./warning":161,"_process":1}],60:[function(require,module,exports){
1033910333
(function (process){
1034010334
/**
1034110335
* Copyright 2014, Facebook, Inc.
@@ -12783,7 +12777,7 @@ function createInstanceForTag(tag, props, parentType) {
1278312777

1278412778
var ReactNativeComponent = {
1278512779
createInstanceForTag: createInstanceForTag,
12786-
injection: ReactNativeComponentInjection,
12780+
injection: ReactNativeComponentInjection
1278712781
};
1278812782

1278912783
module.exports = ReactNativeComponent;
@@ -14398,7 +14392,7 @@ var ReactTestUtils = {
1439814392
mockComponent: function(module, mockTagName) {
1439914393
mockTagName = mockTagName || module.mockTagName || "div";
1440014394

14401-
var ConvenienceConstructor = React.createClass({displayName: 'ConvenienceConstructor',
14395+
var ConvenienceConstructor = React.createClass({displayName: "ConvenienceConstructor",
1440214396
render: function() {
1440314397
return React.createElement(
1440414398
mockTagName,
@@ -19986,7 +19980,7 @@ var emptyFunction = require("./emptyFunction");
1998619980
var warning = emptyFunction;
1998719981

1998819982
if ("production" !== process.env.NODE_ENV) {
19989-
warning = function(condition, format ) {var args=Array.prototype.slice.call(arguments,2);
19983+
warning = function(condition, format ) {for (var args=[],$__0=2,$__1=arguments.length;$__0<$__1;$__0++) args.push(arguments[$__0]);
1999019984
if (format === undefined) {
1999119985
throw new Error(
1999219986
'`warning(condition, format, ...args)` requires a warning ' +

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-leaflet",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "React components for Leaflet maps",
55
"main": "lib/index.js",
66
"scripts": {
@@ -27,22 +27,22 @@
2727
"lodash-node": "^2.4.1"
2828
},
2929
"peerDependencies": {
30-
"react": "^0.12.1"
30+
"react": "^0.12.0"
3131
},
3232
"devDependencies": {
33-
"browserify": "^6.3.3",
34-
"del": "^1.0.0",
33+
"browserify": "^8.1.0",
34+
"del": "^1.1.1",
3535
"gulp": "^3.8.10",
3636
"gulp-load-plugins": "^0.7.1",
3737
"gulp-react": "^2.0.0",
3838
"gulp-util": "^3.0.1",
39-
"gulp-webserver": "^0.8.7",
39+
"gulp-webserver": "^0.9.0",
4040
"jest-cli": "^0.1.18",
41-
"react": "^0.12.1",
42-
"react-tools": "^0.12.1",
41+
"react": "^0.12.2",
42+
"react-tools": "^0.12.2",
4343
"reactify": "^0.17.1",
4444
"vinyl-source-stream2": "^0.1.1",
45-
"watchify": "^2.1.1"
45+
"watchify": "^2.2.1"
4646
},
4747
"jest": {
4848
"scriptPreprocessor": "<rootDir>/preprocessor.js",

0 commit comments

Comments
 (0)