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

  • Home
  • SEARCH
  • 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 8461277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:50:10+00:00 2026-06-10T13:50:10+00:00

I just recently started learning Ember (so far with a lot of trouble). I’m

  • 0

I just recently started learning Ember (so far with a lot of trouble). I’m trying to display a list of feeds. When a feed is clicked I want to append an ‘x’ to its title. This should update immediately in the list.

This is what I’ve got (ember 1.0 pre).

var App = Em.Application.create();

App.set('Feed', Em.Object.extend({
  title: null,
  url: null,
  style: 'default',
  entries: []
}));

App.set('FeedItemView', Em.View.extend({
  tagName: 'li',
  click: function (event) {
    var feed = this.get('feed');
    feed.set('title', feed.get('title') + 'x');
    console.log(feed);
  }
}));

App.set('feedsController', Em.ArrayController.create({
  content: [],

  init: function () {
    this._super(); // IMPORTANT

    this.pushObject(App.Feed.create({
      title: 'DR - Alle nyheder 1',
      url: 'http://www.dr.dk/nyheder/service/feeds/allenyheder'
    }));
    this.pushObject(App.Feed.create({
      title: 'DR - Alle nyheder 2',
      url: 'http://www.dr.dk/nyheder/service/feeds/allenyheder'
    }));
    this.pushObject(App.Feed.create({
      title: 'DR - Alle nyheder 3',
      url: 'http://www.dr.dk/nyheder/service/feeds/allenyheder'
    }));
  }
}));

App.initialize();

And the following in my HTML.

<script type="text/x-handlebars">
  <h1>Feeds</h1>
  <ul>
    {{#each App.feedsController}}
      {{#view App.FeedItemView feedBinding="this"}}
        {{title}}
      {{/view}}
    {{/each}}
  </ul>
</script>

Clicking a feed properly adds the ‘x’ to the title, but I the first click gives this error:

Uncaught Error: Cannot perform operations on a Metamorph that is not in the DOM. 

Clicking multiple times then yields this error:

Something you did caused a view to re-render after it rendered but before it was inserted into the DOM. Because this is avoidable and the cause of significant performance issues in applications, this behavior is deprecated. If you want to use the debugger to find out what caused this, you can set ENV.RAISE_ON_DEPRECATION to true.

I carefully looked up both of these, but haven’t been able to figure anything out. None of the examples that usually yields these errors look like my code. I also tried setting ENV.RAISE_ON_DEPRECATION in various ways, but the error message still shows.

Any help would be appreciated. Thanks! 🙂

SOLUTION:

Apparently, this is what is needed to make the example work.

App.ApplicationController = Em.Controller.extend();
App.ApplicationView = Em.View.extend({
  templateName: 'application'
});

App.Router = Em.Router.extend({ 
  root: Em.Route.extend()
});

App.initialize();

And the template should definition should have a name.

<script type="text/x-handlebars" data-template-name="application">

See this issue on Github.

  • 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-10T13:50:11+00:00Added an answer on June 10, 2026 at 1:50 pm

    Apparently, this is what is needed to make the example work.

    App.ApplicationController = Em.Controller.extend();
    App.ApplicationView = Em.View.extend({
      templateName: 'application'
    });
    
    App.Router = Em.Router.extend({ 
      root: Em.Route.extend()
    });
    
    App.initialize();
    

    And the template definition should have a name.

    <script type="text/x-handlebars" data-template-name="application">
    

    See this issue on Github.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Warning: I just started learning bash recently and trying to do a recursive function
I've just recently started learning HTML/CSS and I've been trying to teach myself sound
I have just recently started learning Haskell and I am having a lot of
I've just started android learning recently, and I'm trying to write one program, but
I've recently been learning the MVVM pattern in WPF and just started making my
I've just recently started using libsvm. I've been trying for awhile to train my
I just recently started learning RoR and found that Prototype.js is a default javascript
I've recently started learning C#. I just learned about properties and decided to make
So I just recently started learning about how databases work, how to use SQL
I just recently have started learning about the wonders of **kwargs but I've hit

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.