Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix($parse): assign returns the new value #12708

Closed
wants to merge 1 commit into from

Conversation

lgalfaso
Copy link
Contributor

The .assign function returns the new value.
The version with csp enabled already has this behavior.

Closes #12675

@@ -2793,7 +2793,7 @@ describe('parser', function() {
var fn = $parse('a');
expect(fn.assign).toBeTruthy();
var scope = {};
fn.assign(scope, 123);
expect(fn.assign(scope, 123)).toBe(123);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are super nitpicky, this is out of scope for this test (i.e. it should be its own it). But it's no dealbreaker

@Narretz
Copy link
Contributor

Narretz commented Aug 31, 2015

LGTM, expect for that nitpick

@Narretz Narretz added this to the 1.4.6 milestone Aug 31, 2015
The `.assign` function returns the new value.
The version with csp enabled already has this behavior.

Closes angular#12675
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants