temple-backbone
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -36,5 +36,5 @@ (function ( global, factory ) { | ||
this.target.on("change", this._onChange = function() { | ||
for (var k in this.changed) { | ||
model.set(k, this.changed[k], { reset: true }); | ||
this.target.on("change sync", this._onChange = function() { | ||
for (var k in this.attributes) { | ||
model.set(k, this.attributes[k], { reset: true }); | ||
} | ||
@@ -64,3 +64,3 @@ }); | ||
destroy: function() { | ||
this.target.off("change", this._onChange); | ||
this.target.off("change sync", this._onChange); | ||
} | ||
@@ -67,0 +67,0 @@ }, { |
{ | ||
"name": "temple-backbone", | ||
"description": "Adds Backbone specific handlers to Temple.", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"author": "Beneath the Ink <info@beneaththeink.com>", | ||
"publishConfig": { | ||
"registry": "http://registry.npmjs.org" | ||
}, | ||
"contributors": [ | ||
@@ -7,0 +10,0 @@ { |
@@ -1,2 +0,2 @@ | ||
# Temple Bacbone | ||
# Temple Backbone | ||
@@ -27,3 +27,3 @@ Adds Backbone specific handlers to [Temple](https://github.com/BeneathTheInk/Temple). | ||
view.set("bone", new Backbone.Model({ foo: "bar" })); | ||
view.get("foo"); // "bar" | ||
view.get("bone.foo"); // "bar" | ||
``` |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
0
1
6295
5
123