Items 1-12 out of 19652 displayed
Normally, a spy exists for the lifetime of the spec. However, there's nothing special about destroying a spy. You just restore the original function reference and that's that.
Here's a...
The way you would normally do this is by passing an array to the resolve:
resolve: {
welcome:
}
With that in mind, you can define your var like this:
...This happens because of JS variable scope. More info for ex. What is the scope of variables in JavaScript?
...I think the email and url validation methods are a good reference here, eg. the email method:
email: function(value, element) {
return this.optional(element) ||...