]> source.dussan.org Git - svg.js.git/commitdiff
Fixed Event-Spec for Chrome
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Sun, 22 Feb 2015 13:58:20 +0000 (14:58 +0100)
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>
Sun, 22 Feb 2015 13:58:20 +0000 (14:58 +0100)
spec/spec/event.js

index 403c795c1ccccd3c5482b0b2edbbe52803418fa7..9f1f0e111adf259b1b6d319a0a3cdf7c7d7d1441 100644 (file)
@@ -1,11 +1,11 @@
 describe('Event', function() {
   var rect, context
     , toast = null
-    , fruitsInDetail,
+    , fruitsInDetail = null,
     action = function(e) {
         toast = 'ready'
         context = this
-        fruitsInDetail = e.detail
+        fruitsInDetail = e.detail || null
       }
 
   beforeEach(function() {