Sha256: 2aa108aa125e9e25a6fc3f49e7cc50b4ce58e8796704adfed595f8422264de9c

Contents?: true

Size: 642 Bytes

Versions: 3

Compression:

Stored size: 642 Bytes

Contents

import global from './global';
// legacy imports/exports/lookup stuff (should we keep this??)
export const context = (function (global, Ember) {
    return Ember === undefined
        ? { imports: global, exports: global, lookup: global }
        : {
            // import jQuery
            imports: Ember.imports || global,
            // export Ember
            exports: Ember.exports || global,
            // search for Namespaces
            lookup: Ember.lookup || global,
        };
})(global, global.Ember);
export function getLookup() {
    return context.lookup;
}
export function setLookup(value) {
    context.lookup = value;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/@ember/-internals/environment/lib/context.js
discourse-ember-source-3.5.1.1 dist/es/ember-environment/lib/context.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-environment/lib/context.js