Skip to content
Browse files

Merge pull request #620 from pangratz/add_isNull_to_Ember.Binding_mixin

add Ember.Binding#isNull to mixin
  • Loading branch information...
2 parents 91c4799 + a81d638 commit 811d724a683b029748dc9c51ffd5a3838a8d5ed6 @wagenet wagenet committed Mar 26, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 packages/ember-metal/lib/binding.js
View
8 packages/ember-metal/lib/binding.js
@@ -646,6 +646,14 @@ mixinProperties(Binding,
},
/**
+ @see Ember.Binding.prototype.isNull
+ */
+ isNull: function(from) {
+ var C = this, binding = new C(null, from);
+ return binding.isNull();
+ },
+
+ /**
Adds a transform that forwards the logical 'AND' of values at 'pathA' and
'pathB' whenever either source changes. Note that the transform acts
strictly as a one-way binding, working only in the direction

0 comments on commit 811d724

Please sign in to comment.
Something went wrong with that request. Please try again.