Manually trigger change event. Why?

Unsure why this needs to be manually triggered, but its seems to.
This commit is contained in:
George Stephanis 2015-08-10 18:22:12 -04:00
parent a8b1cabc0b
commit d8fdfe4c87
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@
if ( rates[ rateID ][ attribute ] !== value ) {
rates[ rateID ][ attribute ] = value;
this.set( 'rates', rates );
this.trigger( 'change:rates' ); // Why is this necessary? Shouldn't the previous line trigger it?
}
}
} ),