##// END OF EJS Templates
Make ContentManager stateless...
KesterTong -
Show More
@@ -16,15 +16,21 b' define(['
16 // Parameters:
16 // Parameters:
17 // options: dictionary
17 // options: dictionary
18 // Dictionary of keyword arguments.
18 // Dictionary of keyword arguments.
19 // notebook_path: string
19 // events: $(Events) instance
20 // base_url: string
20 // base_url: string
21 this.version = 0.1;
21 this.version = 0.1;
22 this.notebook_path = options.notebook_path;
22 this.events = options.events;
23 this.base_url = options.base_url;
23 this.base_url = options.base_url;
24 };
24 };
25
25
26 ContentManager.prototype.new_notebook = function() {
26 /**
27 var path = this.notebook_path;
27 * Creates a new notebook file at the specified path, and
28 * opens that notebook in a new window.
29 *
30 * @method scroll_to_cell
31 * @param {String} path The path to create the new notebook at
32 */
33 ContentManager.prototype.new_notebook = function(path) {
28 var base_url = this.base_url;
34 var base_url = this.base_url;
29 var settings = {
35 var settings = {
30 processData : false,
36 processData : false,
General Comments 0
You need to be logged in to leave comments. Login now