Bind not available in phantomjs?


#1
  message: >                                                                                                                                                                    │ 26                                                                                       | 33     return valid;
        TypeError: 'undefined' is not a function (evaluating '(function (validator) {                                                                                             │ 27   confirmValidator: function() {                                                      | 34   },
                validator.validate(this.get("value"), this);                                                                                                                      │ 28     if (this.get('confirms')) {                                                       | 35
              }).bind(this)')                                                                                                                                                     │ 29       var valid = this.get('confirms.value') === this.get('value');                   | 36   validate: function(value, field) {
    Log: >                                                                                                                                                                        │ 30       this.set('valid', valid);                                                       | 37     var valid = this.test(value);
...

#2

Not sure but }.bind(this)); ?


#3

That is correct, Function.prototype.bind is not available under Phantom 1.x.