Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename a variable to avoid using JS strict mode reserved words. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/iron_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,13 @@ Function.prototype.deprecate = function (info) {
* Returns a function that can be used to log debug messages for a given
* package.
*/
Iron.utils.debug = function (package) {
Iron.utils.assert(typeof package === 'string', "debug requires a package name");
Iron.utils.debug = function (packageName) {
Iron.utils.assert(typeof packageName === 'string', "debug requires a package name");

return function debug (/* args */) {
if (console && console.log && Iron.debug === true) {
var msg = _.toArray(arguments).join(' ');
console.log("%c<" + package + "> %c" + msg, "color: #999;", "color: #000;");
console.log("%c<" + packageName + "> %c" + msg, "color: #999;", "color: #000;");
}
};
};
Expand Down