Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4837

Store returns ProxyObject when Model.reopen() is called

$
0
0

@Keeo wrote:

I would like to reopen Model class. Should be easy, so:

// app/app.js
import Ember from 'ember';
import Resolver from './resolver';
import loadInitializers from 'ember/load-initializers';
import config from './config/environment';
import DS from 'ember-data';
DS.Model.reopen();

After this this.get('store').find('example', 1) resolves into ProxyObject in controller. This happens only if debug console in browser is closed during ember boot.

I already asked on stackoverflow but no success.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4837

Trending Articles