utils tests

This commit is contained in:
Baris Usakli
2017-05-11 16:31:10 -04:00
parent d06b19a69a
commit 51a85031f7
3 changed files with 201 additions and 3 deletions

View File

@@ -346,9 +346,7 @@
},
urlToLocation: function (url) {
var a = document.createElement('a');
a.href = url;
return a;
return $('<a href="' + url + '" />')[0];
},
// return boolean if string 'true' or string 'false', or if a parsable string which is a number