From d4bce0e26fb45d57baf91d694e2a62e1be5b55e6 2015-02-03 20:41:21
From: Min RK <benjaminrk@gmail.com>
Date: 2015-02-03 20:41:21
Subject: [PATCH] ensure IPython._target is defined
---

diff --git a/IPython/html/static/base/js/namespace.js b/IPython/html/static/base/js/namespace.js
index 291e113..8b5b76b 100644
--- a/IPython/html/static/base/js/namespace.js
+++ b/IPython/html/static/base/js/namespace.js
@@ -5,5 +5,6 @@ var IPython = IPython || {};
 define([], function(){
     "use strict";
     IPython.version = "3.0.0-dev";
+    IPython._target = '_blank';
     return IPython;
 });
diff --git a/IPython/html/static/tree/js/notebooklist.js b/IPython/html/static/tree/js/notebooklist.js
index d5c08c4..a58bdf0 100644
--- a/IPython/html/static/tree/js/notebooklist.js
+++ b/IPython/html/static/tree/js/notebooklist.js
@@ -293,7 +293,7 @@ define([
         // directory nav doesn't open new tabs
         // files, notebooks do
         if (model.type !== "directory") {
-            link.attr('target',IPython._target||'_blank');
+            link.attr('target',IPython._target);
         }
         if (model.type !== 'directory') {
             this.add_duplicate_button(item);