[Pkg-javascript-commits] [backbone] 58/101: fix a bug in view tests

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:58:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.1.0
in repository backbone.

commit c32d5360ae84f467050f3da558446f01a3bd6d57
Author: Jeff Larson <thejefflarson at gmail.com>
Date:   Thu Oct 7 20:19:06 2010 -0400

    fix a bug in view tests
---
 test/view.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/view.js b/test/view.js
index a64fe0a..aba3c93 100644
--- a/test/view.js
+++ b/test/view.js
@@ -4,11 +4,12 @@ $(document).ready(function() {
   var View = Backbone.View.extend({
     className : "view",
     render : function(){
-      $(body).append(this.el);
+      $('body').append(this.el);
     }
   });
   
   var view = new View();
+  view.render();
   
   test("view: setMode", function(){
     view.setMode("active", "test");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list