react-rangefilter
Advanced tools
Comparing version 1.0.41 to 1.0.42
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(["exports", "react", "react-dom", "lodash", "react-draggable", ".../toolbox/toolbox"], factory); | ||
define(["exports", "react", "react-dom", "lodash", "react-draggable"], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require("react"), require("react-dom"), require("lodash"), require("react-draggable"), require(".../toolbox/toolbox")); | ||
factory(exports, require("react"), require("react-dom"), require("lodash"), require("react-draggable")); | ||
} else { | ||
@@ -10,6 +10,6 @@ var mod = { | ||
}; | ||
factory(mod.exports, global.react, global.reactDom, global.lodash, global.reactDraggable, global.toolbox); | ||
factory(mod.exports, global.react, global.reactDom, global.lodash, global.reactDraggable); | ||
global.index = mod.exports; | ||
} | ||
})(this, function (exports, _react, _reactDom, _lodash, _reactDraggable, _toolbox) { | ||
})(this, function (exports, _react, _reactDom, _lodash, _reactDraggable) { | ||
"use strict"; | ||
@@ -113,2 +113,14 @@ | ||
}, { | ||
key: "updateState", | ||
value: function updateState(Parcel) { | ||
var existingState = this.state !== null ? _lodash2.default.cloneDeep(this.state) : {}; | ||
var adjustedState = _lodash2.default.merge(existingState, _lodash2.default.cloneDeep(Parcel)); | ||
// | ||
try { | ||
this.setState(adjustedState); | ||
} catch (event) { | ||
console.warn("problem::react-rangefilter.js::updateState::", event); | ||
} | ||
} | ||
}, { | ||
key: "componentWillMount", | ||
@@ -163,4 +175,3 @@ value: function componentWillMount() { | ||
} else { | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Ready": false, | ||
@@ -467,4 +478,3 @@ "Scope": { | ||
if (scopeProxy.state.Panelintervals.Rendered !== true) { | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Panelintervals": { | ||
@@ -685,4 +695,3 @@ "Rendered": true | ||
}); | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Panelintervals": { | ||
@@ -704,4 +713,3 @@ "Type": rangeType | ||
window.requestAnimationFrame(function () { | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Sortedrange": { | ||
@@ -946,4 +954,3 @@ "Collection": _lodash2.default.cloneDeep(scopeRange) | ||
}); | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Sortedrange": { | ||
@@ -954,3 +961,3 @@ "Collection": _lodash2.default.cloneDeep(scopeRange) | ||
if (this.state.Ready !== true) { | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Ready": true | ||
@@ -986,4 +993,3 @@ }); | ||
} | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Leftbound": { | ||
@@ -1023,4 +1029,3 @@ "Profile": { | ||
// | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Leftbound": { | ||
@@ -1067,4 +1072,3 @@ "State": event | ||
// | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Leftbound": { | ||
@@ -1114,4 +1118,3 @@ "State": event | ||
} | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Rightbound": { | ||
@@ -1148,4 +1151,3 @@ "Profile": { | ||
// | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Leftbound": { | ||
@@ -1185,4 +1187,3 @@ "State": event | ||
// | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Rightbound": { | ||
@@ -1224,4 +1225,3 @@ "State": event | ||
} | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Scopefocus": { | ||
@@ -1269,4 +1269,3 @@ "State": event, | ||
// | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
scopeProxy.updateState({ | ||
"Leftbound": { | ||
@@ -1273,0 +1272,0 @@ "Profile": { |
{ | ||
"name": "react-rangefilter", | ||
"version": "1.0.41", | ||
"version": "1.0.42", | ||
"description": "A React component to filter linearly displayed data bounded by a range.", | ||
@@ -5,0 +5,0 @@ "main": "react-rangefilter.js", |
@@ -6,4 +6,2 @@ import React, {Component, PropTypes} from "react"; | ||
// | ||
import {updateState} from ".../toolbox/toolbox"; | ||
// | ||
export default class Rangefilter extends Component | ||
@@ -27,3 +25,2 @@ { | ||
} | ||
/* | ||
updateState(Parcel) | ||
@@ -47,3 +44,2 @@ { | ||
} | ||
*/ | ||
componentWillMount() | ||
@@ -140,4 +136,3 @@ { | ||
{ | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -509,4 +504,3 @@ "Ready":false, | ||
{ | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -867,4 +861,3 @@ "Panelintervals": | ||
}); | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -898,4 +891,3 @@ "Panelintervals": | ||
{ | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -1233,4 +1225,3 @@ "Sortedrange": | ||
}); | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -1244,3 +1235,3 @@ "Sortedrange": | ||
{ | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -1290,4 +1281,3 @@ "Ready":true | ||
} | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -1348,4 +1338,3 @@ "Leftbound": | ||
// | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -1414,4 +1403,3 @@ "Leftbound": | ||
// | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -1485,4 +1473,3 @@ "Leftbound": | ||
} | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -1536,4 +1523,3 @@ "Rightbound": | ||
// | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -1591,4 +1577,3 @@ "Leftbound": | ||
// | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -1651,4 +1636,3 @@ "Rightbound": | ||
} | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -1715,4 +1699,3 @@ "Scopefocus": | ||
// | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
scopeProxy.updateState( | ||
{ | ||
@@ -1719,0 +1702,0 @@ "Leftbound": |
111032
3099