Skip to content

Commit

Permalink
Updated deprecate utility
Browse files Browse the repository at this point in the history
  • Loading branch information
lannymcnie committed Sep 14, 2017
1 parent a50a6f0 commit 2678a12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/createjs/utils/deprecate.js
Expand Up @@ -63,7 +63,8 @@ this.createjs = this.createjs||{};
createjs.deprecate = function(fallbackMethod, name) {
"use strict";
return function() {
console && (console.warn || console.log)("Deprecated property or method '"+name+"'. See docs for info.");
var msg = "Deprecated property or method '"+name+"'. See docs for info.";
console && (console.warn ? console.warn(msg) : console.log(msg));
return fallbackMethod && fallbackMethod.apply(this, arguments);
}
};

0 comments on commit 2678a12

Please sign in to comment.