Skip to content
This repository
Browse code

Merge pull request #823 from trek/DocumentationForViewClass

event name corrections in view documentation
  • Loading branch information...
commit f6d3f641c536a6f79935de709d7853cac192c504 2 parents 33f0c6b + 73278c9
Peter Wagenet wagenet authored

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +6 6 packages/ember-views/lib/views/view.js
12 packages/ember-views/lib/views/view.js
@@ -341,7 +341,7 @@ var invokeForState = {
341 341
342 342 AView = Ember.View.extend({
343 343 eventManager: Ember.Object.create({
344   - dblclick: function(event, view){
  344 + doubleClick: function(event, view){
345 345 // will be called when when an instance's
346 346 // rendered element or any rendering
347 347 // of this views's descendent
@@ -356,12 +356,12 @@ var invokeForState = {
356 356
357 357
358 358 AView = Ember.View.extend({
359   - mouseenter: function(event){
  359 + mouseEnter: function(event){
360 360 // will never trigger.
361 361 },
362 362 eventManager: Ember.Object.create({
363   - mouseenter: function(event, view){
364   - // takes presedence over AView#mouseenter
  363 + mouseEnter: function(event, view){
  364 + // takes presedence over AView#mouseEnter
365 365 }
366 366 })
367 367 })
@@ -375,7 +375,7 @@ var invokeForState = {
375 375 OuterView = Ember.View.extend({
376 376 eventManager: Ember.Object.create({
377 377 template: Ember.Handlebars.compile("outer {{#view InnerView}}inner{{/view}} outer"),
378   - mouseenter: function(event, view){
  378 + mouseEnter: function(event, view){
379 379 // view might be instance of either
380 380 // OutsideView or InnerView depending on
381 381 // where on the page the user interaction occured
@@ -389,7 +389,7 @@ var invokeForState = {
389 389 // an OuterView because OuterView's
390 390 // eventManager doesn't handle click events
391 391 },
392   - mouseenter: function(event){
  392 + mouseEnter: function(event){
393 393 // will never be called if rendered inside
394 394 // an OuterView.
395 395 }

0 comments on commit f6d3f64

Please sign in to comment.
Something went wrong with that request. Please try again.