diff --git a/IPython/html/static/services/contents.js b/IPython/html/static/services/contents.js index 994244d53..035e2eebb 100644 --- a/IPython/html/static/services/contents.js +++ b/IPython/html/static/services/contents.js @@ -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}; });