Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

can-stache-bindings

Package Overview
Dependencies
Maintainers
12
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-stache-bindings - npm Package Compare versions

Comparing version 3.11.2 to 3.11.3

25

can-stache-bindings.js

@@ -213,4 +213,6 @@ // # can-stache-bindings.js

// the bindings.
var attributeListener;
if(!bindingsState.isSettingViewModel) {
domEvents.addEventListener.call(el, attributesEventStr, function (ev) {
attributeListener = function (ev) {
var attrName = ev.attributeName,

@@ -247,6 +249,9 @@ value = el.getAttribute(attrName);

}
});
};
domEvents.addEventListener.call(el, attributesEventStr, attributeListener);
}
return function() {
domEvents.removeEventListener.call(el, attributesEventStr, attributeListener);
for(var attrName in onTeardowns) {

@@ -299,9 +304,3 @@ onTeardowns[attrName]();

teardown = dataBinding.onTeardown;
canEvent.one.call(el, removedStr, function() {
teardown();
});
// Listen for changes
domEvents.addEventListener.call(el, attributesEventStr, function (ev) {
var attributeListener = function (ev) {
var attrName = ev.attributeName,

@@ -335,2 +334,10 @@ value = el.getAttribute(attrName);

}
};
// Listen for changes
domEvents.addEventListener.call(el, attributesEventStr, attributeListener);
teardown = dataBinding.onTeardown;
canEvent.one.call(el, removedStr, function () {
teardown();
domEvents.removeEventListener.call(el, attributesEventStr, attributeListener);
});

@@ -337,0 +344,0 @@ },

{
"name": "can-stache-bindings",
"version": "3.11.2",
"version": "3.11.3",
"description": "Default binding syntaxes for can-stache",

@@ -5,0 +5,0 @@ "homepage": "http://canjs.com",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc