fixed isNumber to angular.isNumber for mocks outside of angular

This commit is contained in:
Misko Hevery
2010-05-19 16:00:20 -07:00
parent 80e12276f4
commit 80bd0c273b
3 changed files with 4 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ function MockBrowser() {
var expect = expectations[method] || (expectations[method] = {});
return {
respond: function(code, response) {
if (!isNumber(code)) {
if (!angular.isNumber(code)) {
response = code;
code = 200;
}