Skip to content

Instantly share code, notes, and snippets.

@possibilities
Created June 24, 2012 01:23
Show Gist options
  • Save possibilities/2980903 to your computer and use it in GitHub Desktop.
Save possibilities/2980903 to your computer and use it in GitHub Desktop.
#foo {
width: 100px;
height: 100px;
border: 1px solid grey;
}
<head>
<title>testmouseenter</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<div id="foo"></div>
</template>
if (Meteor.is_client) {
Template.hello.events = {
'mouseleave #foo' : function () {
console.log('mouseleave');
},
'mouseenter #foo' : function () {
console.log('mouseenter');
},
'click #foo' : function () {
console.log('click');
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment