如何在Ember.js中禁用弃用警告? [英] How to disable deprecation warnings in Ember.js?
本文介绍了如何在Ember.js中禁用弃用警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何在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屋!
查看全文