Skip to content

Commit f21b921

Browse files
committed
remove $script loader because incompatibilities with e2e runner
1 parent 80ea329 commit f21b921

1 file changed

Lines changed: 12 additions & 22 deletions

File tree

docs/src/templates/index.html

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,18 @@
88
<meta name="fragment" content="!">
99
<link rel="stylesheet" href="docs-combined.css" type="text/css"/>
1010
<link rel="stylesheet" href="syntaxhighlighter/syntaxhighlighter-combined.css" type="text/css"/>
11+
1112
<script>
1213
// GA asynchronous tracker
1314
var _gaq = _gaq || [];
1415
_gaq.push(['_setAccount', 'UA-8594346-3']);
1516
_gaq.push(['_setDomainName', '.angularjs.org']);
1617

17-
/*!
18-
* $script.js v1.3
19-
* https://github.com/ded/script.js
20-
* Copyright: @ded & @fat - Dustin Diaz, Jacob Thornton 2011
21-
* Follow our software http://twitter.com/dedfat
22-
* License: MIT
23-
*/
24-
!function(a,b,c){function t(a,c){var e=b.createElement("script"),f=j;e.onload=e.onerror=e[o]=function(){e[m]&&!/^c|loade/.test(e[m])||f||(e.onload=e[o]=null,f=1,c())},e.async=1,e.src=a,d.insertBefore(e,d.firstChild)}function q(a,b){p(a,function(a){return!b(a)})}var d=b.getElementsByTagName("head")[0],e={},f={},g={},h={},i="string",j=!1,k="push",l="DOMContentLoaded",m="readyState",n="addEventListener",o="onreadystatechange",p=function(a,b){for(var c=0,d=a.length;c<d;++c)if(!b(a[c]))return j;return 1};!b[m]&&b[n]&&(b[n](l,function r(){b.removeEventListener(l,r,j),b[m]="complete"},j),b[m]="loading");var s=function(a,b,d){function o(){if(!--m){e[l]=1,j&&j();for(var a in g)p(a.split("|"),n)&&!q(g[a],n)&&(g[a]=[])}}function n(a){return a.call?a():e[a]}a=a[k]?a:[a];var i=b&&b.call,j=i?b:d,l=i?a.join(""):b,m=a.length;c(function(){q(a,function(a){h[a]?(l&&(f[l]=1),o()):(h[a]=1,l&&(f[l]=1),t(s.path?s.path+a+".js":a,o))})},0);return s};s.get=t,s.ready=function(a,b,c){a=a[k]?a:[a];var d=[];!q(a,function(a){e[a]||d[k](a)})&&p(a,function(a){return e[a]})?b():!function(a){g[a]=g[a]||[],g[a][k](b),c&&c(d)}(a.join("|"));return s};var u=a.$script;s.noConflict=function(){a.$script=u;return this},typeof module!="undefined"&&module.exports?module.exports=s:a.$script=s}(this,document,setTimeout)
25-
26-
$script([
27-
'jquery.min.js',
28-
'syntaxhighlighter/syntaxhighlighter-combined.js'], function(){
29-
$script([
30-
'../angular.min.js'], function(){
31-
$script([
32-
'docs-combined.js',
33-
'docs-keywords.js'], function(){
34-
angular.compile(document)();
35-
$script(('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js');
36-
});
37-
});
38-
});
18+
(function() {
19+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
20+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
21+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
22+
})();
3923
</script>
4024
</head>
4125

@@ -81,5 +65,11 @@ <h2 ng:bind="partialTitle"></h2>
8165

8266
<div id="footer">© 2010-2011 angular</div>
8367
</div>
68+
69+
<script src="jquery.min.js"></script>
70+
<script src="syntaxhighlighter/syntaxhighlighter-combined.js"></script>
71+
<script src="../angular.min.js" ng:autobind></script>
72+
<script src="docs-combined.js"></script>
73+
<script src="docs-keywords.js"></script>
8474
</body>
8575
</html>

0 commit comments

Comments
 (0)