From 50f72f802f0e48d4854ea748ce529f1eaeac45f2 Mon Sep 17 00:00:00 2001 From: dsc Date: Sun, 13 May 2012 19:20:06 -0700 Subject: [PATCH] Fixes update() for cases like Scaffold. --- lib/base/data-binding.co | 2 +- lib/graph/graph-edit-view.co | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/base/data-binding.co b/lib/base/data-binding.co index 3ec4899..31f49da 100644 --- a/lib/base/data-binding.co +++ b/lib/base/data-binding.co @@ -21,7 +21,7 @@ class exports.DataBinding @el = @$el.get 0 # Find all bind-points under this element, but not under a subview - @bindPoints = @$ '[data-bind], [name]' .not @$ '[data-subview] [data-bind], [data-subview] [name]' + @bindPoints = @$ '[data-bind], [name]' .not @$('[data-subview]').find('[data-bind], [name]') $: (sel) -> @$el.find sel diff --git a/lib/graph/graph-edit-view.co b/lib/graph/graph-edit-view.co index eec0146..d641591 100644 --- a/lib/graph/graph-edit-view.co +++ b/lib/graph/graph-edit-view.co @@ -38,14 +38,14 @@ GraphEditView = exports.GraphEditView = BaseView.extend do # {{{ template : require 'kraken/template/graph-edit' events: - 'click .redraw-button' : 'stopAndRender' - 'click .load-button' : 'load' - 'click .save-button' : 'save' - 'click .done-button' : 'done' + 'click .redraw-button' : 'stopAndRender' + 'click .load-button' : 'load' + 'click .save-button' : 'save' + 'click .done-button' : 'done' 'keypress .graph-details input[type="text"]' : 'onKeypress' + 'keypress .chart-options .value' : 'onKeypress' 'submit form.graph-details' : 'onDetailsSubmit' 'change :not(.chart-options) select' : 'onDetailsSubmit' - 'keypress .chart-options .value' : 'onKeypress' 'submit form.chart-options' : 'onOptionsSubmit' 'change .chart-options input[type="checkbox"]' : 'onOptionsSubmit' -- 1.7.0.4