File tree 2 files changed +27
-2
lines changed
2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,12 @@ module.exports = function(grunt) {
85
85
'src/directives/uiBreadcrumbs/uiBreadcrumbs.tpl.html' ] ,
86
86
dest : '../angularUtils-dist/angularUtils-uiBreadcrumbs/'
87
87
88
+ } ,
89
+ dirDisqus : {
90
+ expand : true ,
91
+ flatten : true ,
92
+ src : [ 'src/directives/disqus/dirDisqus.js' ] ,
93
+ dest : '../angularUtils-dist/angularUtils-disqus/'
88
94
}
89
95
}
90
96
} ) ;
Original file line number Diff line number Diff line change 7
7
* Copyright Michael Bromley 2014
8
8
* Available under the MIT license.
9
9
*/
10
- angular . module ( 'angularUtils.directives.dirDisqus' , [ ] )
11
10
12
- . directive ( 'dirDisqus' , [ '$window' , function ( $window ) {
11
+ ( function ( ) {
12
+
13
+ /**
14
+ * Config
15
+ */
16
+ var moduleName = 'angularUtils.directives.dirDisqus' ;
17
+
18
+ /**
19
+ * Module
20
+ */
21
+ var module ;
22
+ try {
23
+ module = angular . module ( moduleName ) ;
24
+ } catch ( err ) {
25
+ // named module does not exist, so create one
26
+ module = angular . module ( moduleName , [ ] ) ;
27
+ }
28
+
29
+ module . directive ( 'dirDisqus' , [ '$window' , function ( $window ) {
13
30
return {
14
31
restrict : 'E' ,
15
32
scope : {
@@ -66,3 +83,5 @@ angular.module('angularUtils.directives.dirDisqus', [])
66
83
}
67
84
} ;
68
85
} ] ) ;
86
+
87
+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments