UNPKG

@atlassian/aui

Version:

Atlassian User Interface Framework

18 lines (13 loc) 436 B
'use strict'; import createElement from '../create-element'; import objectAssign from 'object-assign'; function auiNamespace() { return createElement.apply(undefined, arguments); }; var NAMESPACE = 'AJS'; export default function globalize (name, value) { if (window[NAMESPACE] !== auiNamespace) { window[NAMESPACE] = objectAssign(auiNamespace, window[NAMESPACE]); } return window[NAMESPACE][name] = value; }