s/TextareaView/TextAreaView & s/TextboxView/TextBoxView

This commit is contained in:
Jonathan Frederic 2013-10-29 09:26:44 -07:00
parent dfd4e3269e
commit 9b891d4018
2 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ require(["notebook/js/widget"], function(){
IPython.notebook.widget_manager.register_widget_view('LabelView', LabelView); IPython.notebook.widget_manager.register_widget_view('LabelView', LabelView);
var TextareaView = IPython.WidgetView.extend({ var TextAreaView = IPython.WidgetView.extend({
// Called when view is rendered. // Called when view is rendered.
render : function(){ render : function(){
@ -55,9 +55,9 @@ require(["notebook/js/widget"], function(){
}, },
}); });
IPython.notebook.widget_manager.register_widget_view('TextareaView', TextareaView); IPython.notebook.widget_manager.register_widget_view('TextAreaView', TextAreaView);
var TextboxView = IPython.WidgetView.extend({ var TextBoxView = IPython.WidgetView.extend({
// Called when view is rendered. // Called when view is rendered.
render : function(){ render : function(){
@ -91,5 +91,5 @@ require(["notebook/js/widget"], function(){
}, },
}); });
IPython.notebook.widget_manager.register_widget_view('TextboxView', TextboxView); IPython.notebook.widget_manager.register_widget_view('TextBoxView', TextBoxView);
}); });

View File

@ -21,7 +21,7 @@ from IPython.utils.traitlets import Unicode, Bool, List
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
class StringWidget(Widget): class StringWidget(Widget):
target_name = Unicode('StringWidgetModel') target_name = Unicode('StringWidgetModel')
default_view_name = Unicode('TextboxView') default_view_name = Unicode('TextBoxView')
# Keys # Keys
_keys = ['value', 'disabled'] _keys = ['value', 'disabled']