summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib/blt/stripchart.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib/tkextlib/blt/stripchart.rb')
-rw-r--r--ext/tk/lib/tkextlib/blt/stripchart.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tkextlib/blt/stripchart.rb b/ext/tk/lib/tkextlib/blt/stripchart.rb
index a6b0f354e2..74093f1868 100644
--- a/ext/tk/lib/tkextlib/blt/stripchart.rb
+++ b/ext/tk/lib/tkextlib/blt/stripchart.rb
@@ -11,7 +11,7 @@ module Tk::BLT
class Stripchart < TkWindow
TkCommandNames = ['::blt::stripchart'.freeze].freeze
WidgetClassName = 'Stripchart'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
include PlotComponent
include GraphCommand
@@ -28,7 +28,7 @@ module Tk::BLT
private :__strval_optkeys
=begin
- BarElement_ID = ['blt_stripchart_bar'.freeze, '00000'.taint].freeze
+ BarElement_ID = ['blt_stripchart_bar'.freeze, TkUtil.untrust('00000')].freeze
def bar(elem=nil, keys={})
if elem.kind_of?(Hash)