Permalink
Browse files

build v1.0.1

  • Loading branch information...
1 parent f87901b commit c6c66a95e92bded58571380c312634865fe4f7a6 @derickbailey derickbailey committed Dec 3, 2012
@@ -1,4 +1,4 @@
-// Backbone.EventBinder, v1.0.0
+// Backbone.EventBinder, v1.0.1
// Copyright (c)2012 Derick Bailey, Muted Solutions, LLC.
// Distributed under MIT license
// http://github.com/marionettejs/backbone.eventbinder
@@ -84,6 +84,10 @@
// Use whatever best logic necessary to determine the type
// of the supplied object
function getHandlerForObject(obj) {
+ if (_.isUndefined(obj) || _.isNull(obj)) {
+ throw new Error("Can't bindTo undefined");
+ }
+
if (obj.jquery) { return handlerMap.jquery; }
return handlerMap["default"];

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,4 +1,4 @@
-// Backbone.EventBinder, v1.0.0
+// Backbone.EventBinder, v1.0.1
// Copyright (c)2012 Derick Bailey, Muted Solutions, LLC.
// Distributed under MIT license
// http://github.com/marionettejs/backbone.eventbinder
@@ -68,6 +68,10 @@ Backbone.EventBinder = (function(Backbone, _){
// Use whatever best logic necessary to determine the type
// of the supplied object
function getHandlerForObject(obj) {
+ if (_.isUndefined(obj) || _.isNull(obj)) {
+ throw new Error("Can't bindTo undefined");
+ }
+
if (obj.jquery) { return handlerMap.jquery; }
return handlerMap["default"];

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit c6c66a9

Please sign in to comment.