summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-08-24 17:58:16 -0400
committerDaniel Beauchamp <daniel.beauchamp@shopify.com>2012-08-24 17:58:16 -0400
commitb585121df5976a514c06981de73c611b8a3157d3 (patch)
tree3f2f30f81168cd515e8bcc86704b3d55cade467a /templates
parentc3ccc8f11619bc1d182d6c7e73ce160699ff27c7 (diff)
Remove some lingering calls to 'super' from widgets.
Diffstat (limited to 'templates')
-rw-r--r--templates/project/widgets/graph/graph.coffee1
-rw-r--r--templates/project/widgets/number/number.coffee1
-rw-r--r--templates/widget/%name%/%name%.coffee.tt3
3 files changed, 1 insertions, 4 deletions
diff --git a/templates/project/widgets/graph/graph.coffee b/templates/project/widgets/graph/graph.coffee
index 3a149db..8b56a87 100644
--- a/templates/project/widgets/graph/graph.coffee
+++ b/templates/project/widgets/graph/graph.coffee
@@ -20,7 +20,6 @@ class Dashing.Graph extends Dashing.Widget
@graph.render()
onData: (data) ->
- super
if @graph
@graph.series[0].data = data.points
@graph.render()
diff --git a/templates/project/widgets/number/number.coffee b/templates/project/widgets/number/number.coffee
index cb8376e..78e7523 100644
--- a/templates/project/widgets/number/number.coffee
+++ b/templates/project/widgets/number/number.coffee
@@ -20,6 +20,5 @@ class Dashing.Number extends Dashing.Widget
@get('status') == 'warning' || @get('status') == 'danger'
onData: (data) ->
- super
if data.status
$(@get('node')).addClass("status-#{data.status}") \ No newline at end of file
diff --git a/templates/widget/%name%/%name%.coffee.tt b/templates/widget/%name%/%name%.coffee.tt
index 9105f9a..bc752e1 100644
--- a/templates/widget/%name%/%name%.coffee.tt
+++ b/templates/widget/%name%/%name%.coffee.tt
@@ -6,5 +6,4 @@ class Dashing.<%= Thor::Util.camel_case(name) %> extends Dashing.Widget
onData: (data) ->
# Handle incoming data
# You can access the html node of this widget with `@node`
- # Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in.
- super \ No newline at end of file
+ # Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in. \ No newline at end of file