Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9247759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:48:49+00:00 2026-06-18T09:48:49+00:00

Hi i have the following code in my template: <div {{action play this target=view}}>{{title}}</div>

  • 0

Hi i have the following code in my template:

<div {{action "play" this target="view"}}>{{title}}</div>

and the following code in my view:

MB3.PlaylistView = Ember.View.extend({
  play: function(event) {
  }
});

the parameter event passed to the play function is now the playlist model (passed as “this” in the action helper shown above)

In Ember-pre2 the parameter passed to the action handler recieved the browser event with attributes like currentTarget etc. and a property context where the model was in.

How can i access the native event’s parameters like currentTarget in ember-pre4?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:48:51+00:00Added an answer on June 18, 2026 at 9:48 am

    There is a lot of discussion on this ticket as well:

    https://github.com/emberjs/ember.js/issues/1684

    The recommended solution would be to create a custom view and then define a click handler. The click handler will be passed the event as the first argument.

    MB3.PlayButtonView = Em.View.extend({
      click: function(event){
      ... click handler
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code similar to the following: In myapp.html <template name=problems> <div class=problems>
I have following code in my template: <div class=account> {% if request.user.is_authenticated %} <a
I have the following code: template <typename T> LuaCall& operator>>(T) { BOOST_STATIC_ASSERT(sizeof(T) == 0);
I have the following code: template <class T> struct pointer { operator pointer<const T>()
I have something like the following code: template<typename T1, typename T2, typename T3, typename
I have the following code that compiles and works well: template<typename T> T GetGlobal(const
I have the following code: class TimeOutException {}; template <typename T> class MultiThreadedBuffer {
Inside my template function I have the following code: TypeName myFunction() { TypeName result;
I'm using gcc 4.3.2. I have the following code (simplified): #include <cstdlib> template<int SIZE>
I have following code <div id=main> <div id=one> </div> <div id=two> </div> <div id=three>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.