Skip to content

Instantly share code, notes, and snippets.

@bryanforbes
Last active December 16, 2015 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanforbes/5453982 to your computer and use it in GitHub Desktop.
Save bryanforbes/5453982 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test</title>
<style>
#test {
width: 300px;
height: 300px;
}
</style>
</head>
<body>
<div id="test"></div>
<script src="dojo/dojo.js" data-dojo-config="isDebug: true, async: true"></script>
<script>
require([
'dojo/dom',
'dojo/on'
], function (dom, on) {
var test = dom.byId('test');
on(test, 'mouseup', function () {
console.log('mouseup!');
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment