如何在 Ember.js 中禁用弃用警告? [英] How to disable deprecation warnings in Ember.js?
本文介绍了如何在 Ember.js 中禁用弃用警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我编写了一个使用 Ember Data 的应用程序.它通过了所有测试并按预期运行,但是,某些事情导致重复的弃用警告被抛出到控制台.
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.
我想知道如何在 Ember 中禁用这些警告.
I'd like to know how to disable these warnings in Ember.
推荐答案
您可以在 application.js 文件中执行 Ember.deprecate = function(){}
并且应该禁用 ember 弃用警告.
You can just do Ember.deprecate = function(){}
in your application.js file and that should disable ember deprecation warnings.
这篇关于如何在 Ember.js 中禁用弃用警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文