Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Single click copy #239

Merged
merged 4 commits into from
Jan 15, 2016
Merged

Single click copy #239

merged 4 commits into from
Jan 15, 2016

Conversation

plondon
Copy link
Contributor

@plondon plondon commented Jan 14, 2016

No description provided.

@@ -21,6 +21,7 @@ angular.module('walletApp').directive('singleClickSelect', ($window) ->

if scope.browserCanExecCommand
$window.document.execCommand('copy')
scope.$digest()
Copy link
Contributor

Choose a reason for hiding this comment

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

Calling $digest directly can throw an error if angular is already in a $digest loop. Generally, it's better practice to call the $safeApply function defined in app.js: $scope.$root.$safeAppy(). This will do the same thing, but only if necessary. Article with more info.

@Sjors
Copy link
Contributor

Sjors commented Jan 14, 2016

Agree with @jtormey, looks good otherwise.

@Sjors
Copy link
Contributor

Sjors commented Jan 15, 2016

Looks good now, don't worry about the decreased test coverage. Can you do a git rebase on beta, so that Github knows how to merge it?

git checkout beta
git pull
git checkout single-click-copy
git rebase beta

If there are no conflicts:

git push origin single-click-copy --force

jtormey added a commit that referenced this pull request Jan 15, 2016
@jtormey jtormey merged commit 63cea6f into blockchain:beta Jan 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants