angular-localForage icon indicating copy to clipboard operation
angular-localForage copied to clipboard

Unbind behavior

Open martinbrylski opened this issue 10 years ago • 5 comments

This alters the unbind behavior to better match expectations.

See #71

martinbrylski avatar Aug 10 '15 11:08 martinbrylski

Do you mind removing the version bumping parts of this PR? We will figure out what version this will go in as a separate commit, so no need to bump it here.

Also, the comment block above the unbind method describes the method as doing what it used to do. Since this is a breaking change, I'd rather have some discussion around this before needing to bump to 2.0.0 over this.

scotttrinh avatar Jun 15 '16 17:06 scotttrinh

@martinbrylski I'm going to make this change conditional on a second argument so we can keep backwards compatibility and get it in 1.3.0 instead of having to wait until a major version bump. Any thoughts or issues with doing that?

@ocombe If you have a quick second, can you comment on why you're running the $parse(...).assign($scope, null) bit of code in this unbind? It seems like it's not doing anything, but maybe I'm missing something?

scotttrinh avatar Jun 20 '16 18:06 scotttrinh

I have no idea, it was too long ago :)

ocombe avatar Jun 20 '16 19:06 ocombe

@ocombe thanks for weighing in, just wanted to make sure @martinbrylski and I weren't missing anything.

scotttrinh avatar Jun 20 '16 19:06 scotttrinh

@martinbrylski I want to push this forward, but it's pretty out of date. Let me know in the next couple of days if you want to update this, or if you're cool with me re-submitting myself with the suggested changes in the issue you opened.

scotttrinh avatar Jun 27 '16 01:06 scotttrinh