Skip to content

Assign a value to scope.hammerTime before using it to avoid ‘undefined’#597

Open
hollton wants to merge 1 commit intolikeastore:masterfrom
hollton:ngDialog-fs
Open

Assign a value to scope.hammerTime before using it to avoid ‘undefined’#597
hollton wants to merge 1 commit intolikeastore:masterfrom
hollton:ngDialog-fs

Conversation

@hollton
Copy link

@hollton hollton commented Mar 6, 2019

What issue is this PR resolving? Alternatively, please describe the bugfix/enhancement this PR aims to provide

  • The $window.Hammer is not undefined, but scope.hammerTime has been deleted and then it fails to close the dialog becase hammerTime is undefined.
  • This PR resolves this by Assign $window.Hammer($dialog[0]) to scope.hammerTime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant