|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
528 bytes
|
| Line | |
|---|
| 1 | import tagTester from './_tagTester.js';
|
|---|
| 2 | import { root } from './_setup.js';
|
|---|
| 3 |
|
|---|
| 4 | var isFunction = tagTester('Function');
|
|---|
| 5 |
|
|---|
| 6 | // Optimize `isFunction` if appropriate. Work around some `typeof` bugs in old
|
|---|
| 7 | // v8, IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).
|
|---|
| 8 | var nodelist = root.document && root.document.childNodes;
|
|---|
| 9 | if (typeof /./ != 'function' && typeof Int8Array != 'object' && typeof nodelist != 'function') {
|
|---|
| 10 | isFunction = function(obj) {
|
|---|
| 11 | return typeof obj == 'function' || false;
|
|---|
| 12 | };
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | export default isFunction;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.