Permalink
Browse files

Toolkit.getBinding(element, name) won't generate an exception if elem…

…ent is null.
  • Loading branch information...
sorvell committed May 6, 2013
1 parent bae0bf3 commit a270417d136b6f00205ea60d451be9d296e9745d
Showing with 5 additions and 5 deletions.
  1. +1 −1 src/bindMDV.js
  2. +1 −1 toolkit.min.js
  3. +1 −1 toolkit.min.js.map
  4. +1 −1 toolkit.native.min.js
  5. +1 −1 toolkit.native.min.js.map
View
@@ -52,7 +52,7 @@
var emptyBindings = {};
function getBindings(element) {
- return bindings.get(element) || emptyBindings;
+ return element && bindings.get(element) || emptyBindings;
}
function getBinding(element, name) {
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit a270417

Please sign in to comment.