(name, msg)
| 327 | var deprecations = {}; |
| 328 | |
| 329 | function deprecateSimple(name, msg) { |
| 330 | if (hooks.deprecationHandler != null) { |
| 331 | hooks.deprecationHandler(name, msg); |
| 332 | } |
| 333 | if (!deprecations[name]) { |
| 334 | warn(msg); |
| 335 | deprecations[name] = true; |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | hooks.suppressDeprecationWarnings = false; |
| 340 | hooks.deprecationHandler = null; |
no test coverage detected