Remove console from .jshintrc. If we need our app to log, use

`Ember.Logger` instead.
This commit is contained in:
Robin Ward 2014-01-28 16:29:04 -05:00
parent 4626519cdc
commit 42117c684f
2 changed files with 3 additions and 4 deletions

View File

@ -29,7 +29,6 @@
"moment",
"start",
"_",
"console",
"alert",
"controllerFor",
"testController",
@ -66,4 +65,4 @@
"eqnull": true,
"quotmark": false,
"lastsemic": true
}
}

View File

@ -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)