tag 770060 patch
thanks

Hi,

I extracted the following patch from upstream, which fixes this problem:

Description: Use undefined instead of null in Backport.Model defaults test
Origin: backport, 
https://github.com/jashkenas/backbone/commit/8e3c38a19f493f6cf002f9d25c1b5c84aaf6b2f2
Last-Update: 2014-11-19

Index: backbone-0.9.10/test/model.js
===================================================================
--- backbone-0.9.10.orig/test/model.js  2013-01-15 12:31:47.000000000 -0800
+++ backbone-0.9.10/test/model.js       2014-11-19 06:30:48.471307318 -0800
@@ -324,7 +324,7 @@
         "two": 2
       }
     });
-    var model = new Defaulted({two: null});
+    var model = new Defaulted({two: undefined});
     equal(model.get('one'), 1);
     equal(model.get('two'), 2);
     Defaulted = Backbone.Model.extend({
@@ -335,7 +335,7 @@
         };
       }
     });
-    model = new Defaulted({two: null});
+    model = new Defaulted({two: undefined});
     equal(model.get('one'), 3);
     equal(model.get('two'), 4);
   });


-- 
Matt


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to