can-stache-bindings
Advanced tools
Comparing version 3.3.0 to 3.4.0-pre.0
@@ -21,3 +21,3 @@ // # can-stache-bindings.js | ||
var compute = require('can-compute'); | ||
var observeReader = require('can-observation/reader/reader'); | ||
var observeReader = require('can-stache-key'); | ||
var Observation = require('can-observation'); | ||
@@ -85,2 +85,12 @@ var CID = require('can-cid'); | ||
function setPriority(observable, priority){ | ||
if(observable instanceof Observation) { | ||
observable.compute._primaryDepth = priority; | ||
} else if(observable.computeInstance) { | ||
observable.computeInstance.setPrimaryDepth(priority); | ||
} else if(observable.observation) { | ||
observable.observation.compute._primaryDepth = priority; | ||
} | ||
} | ||
var throwOnlyOneTypeOfBindingError = function(){ | ||
@@ -976,8 +986,8 @@ throw new Error("can-stache-bindings - you can not have contextual bindings ( {this}='value' ) and key bindings ( {prop}='value' ) on one element."); | ||
if(bindingData.nodeList) { | ||
if(parentObservable && parentObservable.computeInstance) { | ||
parentObservable.computeInstance.setPrimaryDepth(bindingData.nodeList.nesting+1); | ||
if(parentObservable) { | ||
setPriority(parentObservable, bindingData.nodeList.nesting+1); | ||
} | ||
if(childObservable && childObservable.computeInstance) { | ||
childObservable.computeInstance.setPrimaryDepth(bindingData.nodeList.nesting+1); | ||
if(childObservable) { | ||
setPriority(childObservable, bindingData.nodeList.nesting+1); | ||
} | ||
@@ -984,0 +994,0 @@ } |
{ | ||
"name": "can-stache-bindings", | ||
"version": "3.3.0", | ||
"version": "3.4.0-pre.0", | ||
"description": "Default binding syntaxes for can-stache", | ||
@@ -35,23 +35,24 @@ "homepage": "http://canjs.com", | ||
"can-cid": "^1.0.3", | ||
"can-compute": "^3.1.0", | ||
"can-compute": "^3.3.0-pre.1", | ||
"can-event": "^3.5.0", | ||
"can-event-dom-enter": "^1.0.0", | ||
"can-event-dom-radiochange": "^1.0.0", | ||
"can-observation": "^3.2.0", | ||
"can-reflect": "^1.0.2", | ||
"can-simple-map": "^3.2.0", | ||
"can-stache": "^3.1.0", | ||
"can-observation": "^3.3.0-pre.1", | ||
"can-reflect": "^1.1.0-pre.3", | ||
"can-simple-map": "^3.3.0-pre.2", | ||
"can-stache": "^3.2.0-pre.0", | ||
"can-symbol": "^1.0.0", | ||
"can-types": "^1.1.0", | ||
"can-util": "^3.9.0", | ||
"can-view-callbacks": "^3.1.0", | ||
"can-view-live": "^3.1.0", | ||
"can-view-model": "^3.3.0", | ||
"can-view-scope": "^3.2.0" | ||
"can-view-callbacks": "^3.2.0-pre.0", | ||
"can-view-live": "^3.2.0-pre.0", | ||
"can-view-model": "^3.4.0-pre.0", | ||
"can-view-scope": "^3.3.0-pre.3", | ||
"can-stache-key": "^0.0.2" | ||
}, | ||
"devDependencies": { | ||
"bit-docs": "0.0.7", | ||
"can-define": "^1.2.0", | ||
"can-list": "^3.1.0", | ||
"can-map": "^3.1.0", | ||
"can-define": "^1.3.0-pre.1", | ||
"can-list": "^3.2.0-pre.1", | ||
"can-map": "^3.3.0-pre.1", | ||
"can-vdom": "^3.1.0", | ||
@@ -64,19 +65,3 @@ "can-view-nodelist": "^3.1.0", | ||
"testee": "^0.6.1" | ||
}, | ||
"bit-docs": { | ||
"dependencies": { | ||
"bit-docs-glob-finder": "^0.0.5", | ||
"bit-docs-dev": "^0.0.3", | ||
"bit-docs-js": "^0.0.3", | ||
"bit-docs-generate-readme": "^0.0.8" | ||
}, | ||
"glob": { | ||
"pattern": "**/*.{js,md}", | ||
"ignore": "node_modules/**/*" | ||
}, | ||
"readme": { | ||
"apis": "./docs/apis.json" | ||
}, | ||
"parent": "can-stache-bindings" | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
169886
17
3768
1
+ Addedcan-stache-key@^0.0.2
+ Addedcan-stache-key@0.0.2(transitive)
Updatedcan-compute@^3.3.0-pre.1
Updatedcan-observation@^3.3.0-pre.1
Updatedcan-reflect@^1.1.0-pre.3
Updatedcan-simple-map@^3.3.0-pre.2
Updatedcan-stache@^3.2.0-pre.0
Updatedcan-view-live@^3.2.0-pre.0
Updatedcan-view-model@^3.4.0-pre.0
Updatedcan-view-scope@^3.3.0-pre.3