react.backbone
Advanced tools
Comparing version 0.9.0 to 0.9.2
{ | ||
"name": "react.backbone", | ||
"version": "0.9.0", | ||
"version": "0.9.2", | ||
"author": "Clay Allsopp <clay.allsopp@gmail.com>", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -36,3 +36,3 @@ (function(root, factory) { | ||
var triggerUpdate = behavior.updateScheduler(function() { | ||
if (component.isMounted()) { | ||
if (component._isMounted) { | ||
(component.onModelChange || component.forceUpdate).call(component); | ||
@@ -72,2 +72,4 @@ } | ||
componentDidMount: function() { | ||
this._isMounted = true; | ||
// Whenever there may be a change in the Backbone data, trigger a reconcile. | ||
@@ -101,2 +103,4 @@ subscribe(this, modelOrCollection(this.props), customChangeOptions); | ||
componentWillUnmount: function() { | ||
this._isMounted = false; | ||
// Ensure that we clean up any dangling references when the component is destroyed. | ||
@@ -103,0 +107,0 @@ unsubscribe(this, modelOrCollection(this.props)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24229
432
1