mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Merge pull request #7273 from Carreau/content-no-namespace
Do not inject self in IPython namespace
This commit is contained in:
commit
7a295d1924
@ -1,12 +1,12 @@
|
||||
// Copyright (c) IPython Development Team.
|
||||
// Distributed under the terms of the Modified BSD License.
|
||||
|
||||
define([
|
||||
'base/js/namespace',
|
||||
'jquery',
|
||||
'base/js/utils',
|
||||
], function(IPython, $, utils) {
|
||||
define(function(require) {
|
||||
"use strict";
|
||||
|
||||
var $ = require('jquery');
|
||||
var utils = require('base/js/utils');
|
||||
|
||||
var Contents = function(options) {
|
||||
/**
|
||||
* Constructor
|
||||
@ -245,8 +245,5 @@ define([
|
||||
return this.get(path, {type: 'directory'});
|
||||
};
|
||||
|
||||
|
||||
IPython.Contents = Contents;
|
||||
|
||||
return {'Contents': Contents};
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user