Permalink
Browse files

bw compatibility fixes in logging

  • Loading branch information...
1 parent 91b545f commit 7e33ac31d171874d5e51a858965c71f3e34a4929 @danstocker danstocker committed May 27, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/core/logging.js
View
@@ -37,10 +37,18 @@ jOrder.logging = function ($core) {
if (jOrder.logging) {
window.console.warn(msg);
}
- }
+ },
// use throw instead of console.error()
+ // DEPRECATED
+ error: function () {
+ self.warn("Use throw instead of .error()");
+ }
};
+ // legacy warning function
+ // DEPRECATED
+ self.warning = self.warn;
+
return $core.delegate(self);
}(jOrder.core);

0 comments on commit 7e33ac3

Please sign in to comment.