summaryrefslogtreecommitdiff
path: root/templates/project/widgets/meter
diff options
context:
space:
mode:
Diffstat (limited to 'templates/project/widgets/meter')
-rw-r--r--templates/project/widgets/meter/meter.coffee14
1 files changed, 6 insertions, 8 deletions
diff --git a/templates/project/widgets/meter/meter.coffee b/templates/project/widgets/meter/meter.coffee
index 4dbc2da..0e0a8ad 100644
--- a/templates/project/widgets/meter/meter.coffee
+++ b/templates/project/widgets/meter/meter.coffee
@@ -1,7 +1,6 @@
-class AllTheThings.Meter extends AllTheThings.Widget
- source: 'meter'
+class Dashing.Meter extends Dashing.Widget
- @accessor 'value', Batman.Property.EasingSetter
+ @accessor 'value', Dashing.AnimatedValue
constructor: ->
super
@@ -9,8 +8,7 @@ class AllTheThings.Meter extends AllTheThings.Widget
$(@node).find(".meter").val(value).trigger('change')
ready: ->
- Batman.setImmediate =>
- meter = $(@node).find(".meter")
- meter.attr("data-bgcolor", meter.css("background-color"))
- meter.attr("data-fgcolor", meter.css("color"))
- meter.knob() \ No newline at end of file
+ meter = $(@node).find(".meter")
+ meter.attr("data-bgcolor", meter.css("background-color"))
+ meter.attr("data-fgcolor", meter.css("color"))
+ meter.knob() \ No newline at end of file