Projekt

Obecné

Profil

Stáhnout (595 Bajtů) Statistiky
| Větev: | Revize:
1
(function (global, factory) {
2
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
  typeof define === 'function' && define.amd ? define(factory) :
4
  (global = global || self, global.warning = factory());
5
}(this, function () { 'use strict';
6

    
7
  function warning(condition, message) {
8
    {
9
      if (condition) {
10
        return;
11
      }
12

    
13
      var text = "Warning: " + message;
14

    
15
      if (typeof console !== 'undefined') {
16
        console.warn(text);
17
      }
18

    
19
      try {
20
        throw Error(text);
21
      } catch (x) {}
22
    }
23
  }
24

    
25
  return warning;
26

    
27
}));
(4-4/5)