Permalink
Browse files

fix #973 Fixing the test because was failing on IE7

Test failing on IE7
  • Loading branch information...
1 parent 41d50bf commit 465099a8b6a6cf2b4032223538df58990cfdabb2 @fab-b fab-b committed Feb 13, 2014
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/aria/templates/CSSCtxt.js
  2. +2 −2 test/aria/templates/css/imgprefix/ImgPrefixTemplateTestCase.js
@@ -233,8 +233,8 @@ Aria.classDefinition({
*/
_cleanUrl : function (url) {
var tmp = url.replace(/\burl\s*/gi, ""); // removing url word
- tmp = tmp[0] === "(" ? tmp.substring(1, tmp.length - 1) : tmp; // removing brackets
- tmp = tmp[0] === "\'" || tmp[0] === "\"" ? tmp.substring(1, tmp.length - 1) : tmp; // removing quotes
+ tmp = tmp.charAt(0) === "(" ? tmp.substring(1, tmp.length - 1) : tmp; // removing brackets
+ tmp = tmp.charAt(0) === "\'" || tmp.charAt(0) === "\"" ? tmp.substring(1, tmp.length - 1) : tmp; // removing quotes
return tmp;
},
@@ -79,8 +79,8 @@ Aria.classDefinition({
},
_cleanUrls : function (url) {
- url = url[url.length - 1] === ")" ? url.substring(0, url.length - 1) : url;
- url = url[url.length - 1] === "\"" || url[url.length - 1] === "\'" ? url.substring(0, url.length - 1) : url;
+ url = url.charAt(url.length - 1) === ")" ? url.substring(0, url.length - 1) : url;
+ url = url.charAt(url.length - 1) === "\"" || url.charAt(url.length - 1) === "\'" ? url.substring(0, url.length - 1) : url;
return url;
}
}

0 comments on commit 465099a

Please sign in to comment.