Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable deprecation warnings in Ember.js?

Tags:

ember.js

I've written up an application that uses Ember Data. It's passing all it's tests and running as expected, however, something is causing a repeated deprecation warning to be thrown into console.

I'd like to know how to disable these warnings in Ember.

like image 535
manske Avatar asked Oct 17 '13 19:10

manske


2 Answers

You can just do Ember.deprecate = function(){} in your application.js file and that should disable ember deprecation warnings.

like image 182
VNarasimhaM Avatar answered Oct 25 '22 02:10

VNarasimhaM


It's always good to consider deprecations, but if you want to just turn them off entirely add the following 2 lines to your main app.js file.

Ember.deprecate = function(){};
Ember.warn = function(i){};
like image 37
Shawn Deprey Avatar answered Oct 25 '22 02:10

Shawn Deprey