mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Remove console from .jshintrc. If we need our app to log, use
`Ember.Logger` instead.
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
"moment",
|
||||
"start",
|
||||
"_",
|
||||
"console",
|
||||
"alert",
|
||||
"controllerFor",
|
||||
"testController",
|
||||
@@ -66,4 +65,4 @@
|
||||
"eqnull": true,
|
||||
"quotmark": false,
|
||||
"lastsemic": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user