Minor fixes.
This commit is contained in:
parent
028e950c81
commit
7c4e7eb225
@ -185,7 +185,7 @@ $watch = (collection, {
|
|||||||
$each keys, (key) -> collection.on "key=#{key}", processOne
|
$each keys, (key) -> collection.on "key=#{key}", processOne
|
||||||
|
|
||||||
# Handles existing items.
|
# Handles existing items.
|
||||||
process 'enter', collection.getRaw keys
|
process 'enter', (collection.getRaw keys, true)
|
||||||
else if not $_.isEmpty rules
|
else if not $_.isEmpty rules
|
||||||
# Matching is done the rules.
|
# Matching is done the rules.
|
||||||
|
|
||||||
|
@ -98,13 +98,13 @@ describe 'Helper', ->
|
|||||||
'sum.bar': null
|
'sum.bar': null
|
||||||
}
|
}
|
||||||
|
|
||||||
$expect(collecter.get 'sum.foo').to.equal 1
|
$expect(collection.get 'sum.foo').to.equal 1
|
||||||
$expect(collecter.get 'sum.bar').to.equal 2
|
$expect(collection.get 'sum.bar').to.equal 2
|
||||||
|
|
||||||
collection.remove 'bar'
|
collection.remove 'bar'
|
||||||
|
|
||||||
$expect(collecter.get 'sum.foo').to.equal 1
|
$expect(collection.get 'sum.foo').to.equal 1
|
||||||
$expect(collecter.get 'sum.bar').to.equal 0
|
$expect(collection.get 'sum.bar').to.equal 0
|
||||||
|
|
||||||
it 'with single rule', ->
|
it 'with single rule', ->
|
||||||
collection.set {
|
collection.set {
|
||||||
|
Loading…
Reference in New Issue
Block a user