Skip to content

Commit

Permalink
Fix #724: declare variable target_ref before usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
djamshed committed Nov 14, 2016
1 parent f2cdd70 commit 7097007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/misc/utility.js
Expand Up @@ -342,7 +342,7 @@ function mg_target_ref(target) {
return mg_normalize(target);

} else if (target instanceof window.HTMLElement) {
target_ref = target.getAttribute('data-mg-uid');
var target_ref = target.getAttribute('data-mg-uid');
if (!target_ref) {
target_ref = mg_next_id();
target.setAttribute('data-mg-uid', target_ref);
Expand Down

0 comments on commit 7097007

Please sign in to comment.