如何在Ember.js中禁用弃用警告? [英] How to disable deprecation warnings in Ember.js?

查看:138
本文介绍了如何在Ember.js中禁用弃用警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个使用Ember Data的应用程序。它正在传递所有的测试并按预期运行,但是,有些事情导致重复的弃用警告被抛出到控制台中。



我想知道如何在Ember中禁用这些警告。

解决方案

您可以在应用程序.js文件中执行Ember.deprecate = function(){},并且应该禁用ember弃用警告。


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.

解决方案

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

这篇关于如何在Ember.js中禁用弃用警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆