1- /*! angular-highlightjs
2- version: 0.4.1
3- build date: 2015-02-03
4- author: Chih-Hsuan Fan
5- https://github.com/pc035860/angular-highlightjs.git */
6-
7- /* commonjs package manager support (eg componentjs) */
8- if ( typeof module !== "undefined" && typeof exports !== "undefined" && module . exports === exports ) {
9- module . exports = 'hljs' ;
10- }
11-
12- ( function ( window , angular , undefined ) {
13- /*global angular*/
1+ /*! angular-highlightjs
2+ version: 0.4.1
3+ build date: 2015-07-25
4+ author: Chih-Hsuan Fan
5+ https://github.com/pc035860/angular-highlightjs.git */
6+
7+ ( function ( root , factory ) {
8+ if ( typeof define === "function" && define . amd ) {
9+ define ( [ "angular" , "hljs" ] , factory ) ;
10+ } else if ( typeof module === "object" && module . exports ) {
11+ module . exports = factory ( require ( "angular" ) , require ( "highlight.js" ) ) ;
12+ } else {
13+ root . returnExports = factory ( root . angular , root . hljs ) ;
14+ }
15+ } ( this , function ( angular , hljs ) {
16+
17+ /*global angular, hljs*/
1418
1519function shouldHighlightStatics ( attrs ) {
1620 var should = true ;
@@ -24,7 +28,6 @@ function shouldHighlightStatics(attrs) {
2428 return should ;
2529}
2630
27-
2831var ngModule = angular . module ( 'hljs' , [ ] ) ;
2932
3033/**
@@ -40,10 +43,9 @@ ngModule.provider('hljsService', function () {
4043 getOptions : function ( ) {
4144 return angular . copy ( _hljsOptions ) ;
4245 } ,
43- $get : [ '$window' , function ( $window ) {
44- ( $window . hljs . configure || angular . noop ) ( _hljsOptions ) ;
45- return $window . hljs ;
46- } ]
46+ $get : function ( ) {
47+ return hljs ;
48+ }
4749 } ;
4850} ) ;
4951
@@ -376,5 +378,7 @@ ngModule
376378. directive ( 'hljs' , hljsDir )
377379. directive ( 'language' , languageDirFactory ( 'language' ) )
378380. directive ( 'source' , sourceDirFactory ( 'source' ) )
379- . directive ( 'include' , includeDirFactory ( 'include' ) ) ;
380- } ) ( window , window . angular ) ;
381+ . directive ( 'include' , includeDirFactory ( 'include' ) ) ;
382+
383+ return "hljs" ;
384+ } ) ) ;
0 commit comments