mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 03:23:38 +08:00
Remove console
from .jshintrc. If we need our app to log, use
`Ember.Logger` instead.
This commit is contained in:
parent
4626519cdc
commit
42117c684f
|
@ -29,7 +29,6 @@
|
|||
"moment",
|
||||
"start",
|
||||
"_",
|
||||
"console",
|
||||
"alert",
|
||||
"controllerFor",
|
||||
"testController",
|
||||
|
|
|
@ -34,10 +34,10 @@ Discourse.Ajax = Em.Mixin.create({
|
|||
}
|
||||
|
||||
if (args.success) {
|
||||
console.warning("DEPRECATION: Discourse.ajax should use promises, received 'success' callback");
|
||||
Ember.Logger.error("DEPRECATION: Discourse.ajax should use promises, received 'success' callback");
|
||||
}
|
||||
if (args.error) {
|
||||
console.warning("DEPRECATION: Discourse.ajax should use promises, received 'error' callback");
|
||||
Ember.Logger.error("DEPRECATION: Discourse.ajax should use promises, received 'error' callback");
|
||||
}
|
||||
|
||||
// If we have URL_FIXTURES, load from there instead (testing)
|
||||
|
|
Loading…
Reference in New Issue
Block a user