Created
February 3, 2015 16:47
-
-
Save Dracks/71467bd9426faf15bb51 to your computer and use it in GitHub Desktop.
// source http://jsbin.com/xukuluciva
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v2.0.0.js"></script> | |
<script src="http://builds.emberjs.com/tags/v1.9.0/ember.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script type="text/x-handlebars" data-template-name="application"> | |
Hello World | |
{{outlet}} | |
</script> | |
<script type="text/x-handlebars" data-template-name="index"> | |
<table><tr> | |
{{#each item in controller itemViewClass="commentsCalendarDay"}} | |
{{item}} | |
{{/each}} | |
</tr></table> | |
</script> | |
<script id="jsbin-javascript"> | |
App = Ember.Application.create({ | |
}); | |
App.Router.map(function(){}); | |
App.CommentsCalendarDayView = Ember.View.extend(Ember.ViewTargetActionSupport,{ | |
tagName: 'td', | |
mouseEnter: function () { | |
console.log('enter'); | |
this.get('controller').send('mouseEnter', this.get('content')); | |
}, | |
mouseLeave: function () { | |
console.log('leave'); | |
this.get('controller').send('mouseLeave', this.get('content')); | |
} | |
}); | |
App.IndexRoute=Ember.Route.extend({ | |
model: function(){ | |
return ["uno", "dos", "tres"]; | |
} | |
}); | |
App.IndexController=Ember.ArrayController.extend({ | |
actions:{ | |
mouseEnter: function (){}, | |
mouseLeave: function () {} | |
} | |
}); | |
</script> | |
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html> | |
<html> | |
<head> | |
<script src="//code.jquery.com/jquery-1.11.1.min.js"><\/script> | |
<script src="//builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v2.0.0.js"><\/script> | |
<script src="//builds.emberjs.com/tags/v1.9.0/ember.js"><\/script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script type="text/x-handlebars" data-template-name="application"> | |
Hello World | |
{{outlet}} | |
<\/script> | |
<script type="text/x-handlebars" data-template-name="index"> | |
<table><tr> | |
{{#each item in controller itemViewClass="commentsCalendarDay"}} | |
{{item}} | |
{{/each}} | |
</tr></table> | |
<\/script> | |
</body> | |
</html></script> | |
<script id="jsbin-source-javascript" type="text/javascript">App = Ember.Application.create({ | |
}); | |
App.Router.map(function(){}); | |
App.CommentsCalendarDayView = Ember.View.extend(Ember.ViewTargetActionSupport,{ | |
tagName: 'td', | |
mouseEnter: function () { | |
console.log('enter'); | |
this.get('controller').send('mouseEnter', this.get('content')); | |
}, | |
mouseLeave: function () { | |
console.log('leave'); | |
this.get('controller').send('mouseLeave', this.get('content')); | |
} | |
}); | |
App.IndexRoute=Ember.Route.extend({ | |
model: function(){ | |
return ["uno", "dos", "tres"]; | |
} | |
}); | |
App.IndexController=Ember.ArrayController.extend({ | |
actions:{ | |
mouseEnter: function (){}, | |
mouseLeave: function () {} | |
} | |
});</script></body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App = Ember.Application.create({ | |
}); | |
App.Router.map(function(){}); | |
App.CommentsCalendarDayView = Ember.View.extend(Ember.ViewTargetActionSupport,{ | |
tagName: 'td', | |
mouseEnter: function () { | |
console.log('enter'); | |
this.get('controller').send('mouseEnter', this.get('content')); | |
}, | |
mouseLeave: function () { | |
console.log('leave'); | |
this.get('controller').send('mouseLeave', this.get('content')); | |
} | |
}); | |
App.IndexRoute=Ember.Route.extend({ | |
model: function(){ | |
return ["uno", "dos", "tres"]; | |
} | |
}); | |
App.IndexController=Ember.ArrayController.extend({ | |
actions:{ | |
mouseEnter: function (){}, | |
mouseLeave: function () {} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment