(element)
| 3087 | GLOBAL.Element.Storage = { UID: 1 }; |
| 3088 | |
| 3089 | function getUniqueElementID(element) { |
| 3090 | if (element === window) return 0; |
| 3091 | |
| 3092 | // Need to use actual `typeof` operator to prevent errors in some |
| 3093 | // environments when accessing node expandos. |
| 3094 | if (typeof element._prototypeUID === 'undefined') |
| 3095 | element._prototypeUID = Element.Storage.UID++; |
| 3096 | return element._prototypeUID; |
| 3097 | } |
| 3098 | |
| 3099 | // In Internet Explorer, DOM nodes have a `uniqueID` property. Saves us |
| 3100 | // from inventing our own. |
no outgoing calls
no test coverage detected