##// END OF EJS Templates
treat all falsy values the same in tooltip...
MinRK -
Show More
@@ -341,22 +341,22 b' var IPython = (function (IPython) {'
341
341
342 // build docstring
342 // build docstring
343 var defstring = content.call_def;
343 var defstring = content.call_def;
344 if (defstring == null) {
344 if (!defstring) {
345 defstring = content.init_definition;
345 defstring = content.init_definition;
346 }
346 }
347 if (defstring == null) {
347 if (!defstring) {
348 defstring = content.definition;
348 defstring = content.definition;
349 }
349 }
350
350
351 var docstring = content.call_docstring;
351 var docstring = content.call_docstring;
352 if (docstring == null) {
352 if (!docstring) {
353 docstring = content.init_docstring;
353 docstring = content.init_docstring;
354 }
354 }
355 if (docstring == null) {
355 if (!docstring) {
356 docstring = content.docstring;
356 docstring = content.docstring;
357 }
357 }
358
358
359 if (docstring == null) {
359 if (!docstring) {
360 // For reals this time, no docstring
360 // For reals this time, no docstring
361 if (this._hide_if_no_docstring) {
361 if (this._hide_if_no_docstring) {
362 return;
362 return;
General Comments 0
You need to be logged in to leave comments. Login now