can-stache-bindings
Advanced tools
Comparing version 3.0.13 to 3.0.14
@@ -1,2 +0,2 @@ | ||
// # can/view/bindings/bindings.js | ||
// # can-stache-bindings.js | ||
// | ||
@@ -310,3 +310,3 @@ // This module provides CanJS's default data and event bindings. | ||
//!steal-remove-start | ||
dev.warn("can/view/bindings: " + attributeName + " couldn't find method named " + expr.methodExpr.key, { | ||
dev.warn("can-stache-bindings: " + attributeName + " couldn't find method named " + expr.methodExpr.key, { | ||
element: el, | ||
@@ -438,3 +438,3 @@ scope: data.scope | ||
function syntaxWarning(el, attrData) { | ||
dev.warn('can/view/bindings/bindings.js: mismatched binding syntax - ' + attrData.attributeName); | ||
dev.warn('can-stache-bindings: mismatched binding syntax - ' + attrData.attributeName); | ||
} | ||
@@ -470,3 +470,2 @@ viewCallbacks.attr(/^\(.+\}$/, syntaxWarning); | ||
} | ||
} | ||
@@ -607,3 +606,11 @@ | ||
else if(types.isMapLike(parentCompute)) { | ||
parentCompute.attr(newVal, true); | ||
// !steal-dev-start | ||
var attrValue = el.getAttribute(attrName); | ||
dev.warn("can-stache-bindings: Merging " + attrName + " into " + attrValue + " because its parent is non-observable"); | ||
// !steal-dev-end | ||
(parentCompute.set || parentCompute.attr).call( | ||
parentCompute, | ||
newVal.serialize ? newVal.serialize() : newVal, | ||
true | ||
); | ||
} | ||
@@ -610,0 +617,0 @@ } |
{ | ||
"name": "can-stache-bindings", | ||
"version": "3.0.13", | ||
"version": "3.0.14", | ||
"description": "Default binding syntaxes for can-stache", | ||
@@ -35,6 +35,6 @@ "homepage": "http://canjs.com", | ||
"dependencies": { | ||
"can-compute": "^3.0.0", | ||
"can-event": "^3.0.1", | ||
"can-compute": "^3.0.8", | ||
"can-event": "^3.3.0", | ||
"can-observation": "^3.0.1", | ||
"can-stache": "^3.0.13", | ||
"can-stache": "^3.0.22", | ||
"can-types": "^1.0.1", | ||
@@ -51,3 +51,3 @@ "can-util": "^3.2.2", | ||
"can-list": "^3.0.1", | ||
"can-map": "^3.0.3", | ||
"can-map": "^3.0.7", | ||
"can-vdom": "^3.0.2", | ||
@@ -54,0 +54,0 @@ "can-view-nodelist": "^3.0.2", |
@@ -239,2 +239,15 @@ require('can-stache-bindings'); | ||
function makeKeyboardEvent() { | ||
var event; | ||
try { | ||
// IE doesn't support this syntax (Edge does, other evergreen browsers do) | ||
event = new KeyboardEvent("keyup",{key: "Enter"}); | ||
return event; | ||
} catch(e) { | ||
event = document.createEvent("KeyboardEvent"); | ||
event.initKeyboardEvent("keyup", true, false, document.parentWindow, "Enter", 16, "", false, "en-US"); | ||
return event; | ||
} | ||
} | ||
var supportsKeyboardEvents = (function(){ | ||
@@ -248,4 +261,3 @@ if(typeof KeyboardEvent !== "undefined") { | ||
}); | ||
var event = new KeyboardEvent("keyup",{key: "Enter"}); | ||
el.dispatchEvent(event); | ||
el.dispatchEvent(makeKeyboardEvent()); | ||
return supports; | ||
@@ -271,3 +283,3 @@ } catch(e) { | ||
var event = new KeyboardEvent("keyup",{key: "Enter"}); | ||
var event = makeKeyboardEvent(); | ||
input.dispatchEvent(event); | ||
@@ -274,0 +286,0 @@ }); |
Sorry, the diff of this file is too big to display
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
146815
3124
1
Updatedcan-compute@^3.0.8
Updatedcan-event@^3.3.0
Updatedcan-stache@^3.0.22