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 9239045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:53:51+00:00 2026-06-18T07:53:51+00:00

When I use ember-1.0.0-pre.4.min.js on my code , I get the following errors from

  • 0

When I use ember-1.0.0-pre.4.min.js on my code, I get the following errors from Chrome’s console debugger:

Uncaught TypeError: Object prototype may only be an Object or null ember-1.0.0-pre.4.min.js:18
Uncaught TypeError: Cannot call method ‘extend’ of undefined

Code:

Win = Em.Application.create({                
    View: {}, 
    Model: {},
    Controller: {}
});

Win.Model.ValuePair = Em.Object.extend({
    id: null,
    name: null
});

Win.View.BrandKeywordView = Em.TextField.extend({
    keyDown: function () {
        var value = this.get('value');

        if (value) {
            Win.Controller.BrandKeywordController.searchBrand(value);
            console.log(Win.Controller.BrandKeywordController.content[0].id);
        }
    }
});

Win.Controller.BrandKeywordController = Em.ArrayProxy.create({
    content: [],

    searchBrand: function (brandName) {
        var me = this;
        $.ajax({
            type: "POST",
            dataType: "json",
            contentType: 'application/json; charset=utf-8',
            url: 'brands/default.aspx/Search',
            data: '{keyword:"' + brandName + '"}',
            success: function (data) {
                var brands = $.parseJSON(data.d);
                me.content = [];
                for (var i = 0, max = brands.length; i < max; i++) {
                    me.pushObject(Win.Model.ValuePair.create({ id: brands[i].Id, name: brands[i].Name }));
                }
            }
        });
    }
});

But then everything works fine when I switch to ember-1.0.beta.2.min.js.

What am I doing wrong?

Which release should I use?

Thanks in advance.

  • 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-18T07:53:52+00:00Added an answer on June 18, 2026 at 7:53 am

    Without having studied your code in detail, my guess would be the routing API. It has completely changed between pre2 and pre3, thus is not backward compatible. Have a look at http://emberjs.com/guides/routing/

    So, you really need to “migrate” your code to the new version. It will not just work with the new versions.

    NOTE that the API has been freezed with pre4. So, API backward compatibility issues should not arise anymore ’til the next major version of ember js.

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

Sidebar

Related Questions

I'm getting this JS error while trying to use Ember routing: Uncaught TypeError: Object
It would be nice to use ember.js , data from git HEAD , since
I have been trying the new Router and the new Ember code (Version: v1.0.0-pre.2-366-g4772b18),
I've got some of the following code: https://gist.github.com/c111cf9a240a078c9f6a (in rails) I'm using ember-latest: //
I'm trying to use Ember-Data and the provided RESTAdapter to load an object like
I use the latest ember-latest.js from the GitHub repository. When I try to use
In my app I don't use ember-data, so how I can save an object
When I use the Ember Router, how can I define actions in the template
I'm trying to use the Ember.Router implemented in the latest version of ember (latest
When I use a dynamic segment in the Ember.Router then will ember automatically identify

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.