Use Ember.set () to set the content property

We have a problem that seems very similar to https://github.com/emberjs/ember.js/pull/9767 . The error we receive is the following:

Error while processing route: [route-name] Assertion Failed: You must use Ember.set() to set the 'content' property (of [route]) to 'undefined'.

So the only difference is that it complains about "content" instead of "controller" and tries to set it to "undefined". This only happens for a few users and it seems to be mostly older Android devices. We were able to reproduce the bug in the default browser on a device running Android 2.3.4.

Does anyone know why this is happening? Debugging old Android devices is a pain!

+3


source to share


1 answer


I forgot about this question on StackOverflow and someone else on our team fixed the issue. This line of code:

return self.getJSON(self.get('dataUrl'))
    .then(self.get('_modelMap').bind(self))

      

Were changed:

return self.getJSON(self.get('dataUrl'))
    .then(function(data) {
        return self._modelMap(data);
    })

      



This was done in one of our base controllers.

Handlebars has also been upgraded from v1.3.0 to v2.0.0 in the same commit. Don't know if this is required to fix the problem.

Hope this can help others with the same problem :)

0


source







All Articles