reactive-replica
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -49,3 +49,3 @@ | ||
//looking for specified place: | ||
var specified | ||
let specified = undefined | ||
for ( let candidate of this.children ) | ||
@@ -52,0 +52,0 @@ { |
{ | ||
"name": "reactive-replica", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Helps structure logic around model changes, i.e. utilize reactive style.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -729,2 +729,40 @@ import 'babel-polyfill' | ||
} ) | ||
it ( 'Resolve', function( done ) | ||
{ | ||
let root = new Place | ||
root.replicate( { | ||
path : { | ||
to : { | ||
first : 1, | ||
second : 2 | ||
} | ||
} | ||
} ) | ||
let first = root.resolve( 'path.to.first' ) | ||
let second = root.resolve( 'path.to.second' ) | ||
let firstCalled = 0 | ||
first.listen( { | ||
create : function( created ) { | ||
expect( created ).equal( 1 ) | ||
++ firstCalled | ||
} | ||
} ) | ||
let secondCalled = 0 | ||
second.listen( { | ||
create : function( created ) { | ||
expect( created ).equal( 2 ) | ||
++ secondCalled | ||
} | ||
} ) | ||
expect( firstCalled ).equal( 1 ) | ||
expect( secondCalled ).equal( 1 ) | ||
done() | ||
} ) | ||
} ) | ||
@@ -731,0 +769,0 @@ |
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
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
50163
1462