Skip to content

Commit

Permalink
LABjs.next: fixing bug with canonical_uri usage
Browse files Browse the repository at this point in the history
  • Loading branch information
getify committed May 19, 2011
1 parent d169fc0 commit 689cc25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/LAB.src.js
Expand Up @@ -54,7 +54,7 @@
function is_array(arr) { return Object.prototype.toString.call(arr) == "[object Array]"; }

// test if script URL is on same domain as page or not
function same_domain(src) { return (canonical_uri(src).indexOf(root_domain) == 0); }
function same_domain(src) { return (canonical_uri(src,root_domain).indexOf(root_domain) == 0); }

// make script URL absolute/canonical
function canonical_uri(src,base_path) {
Expand Down

0 comments on commit 689cc25

Please sign in to comment.