Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit 42458b9

Browse files
committed
Merge pull request #21 from handonam/master
Fixed dependency injection breaking on minification
2 parents 44c55af + 1e433e0 commit 42458b9

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

dist/mention.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ angular.module('ui.mention', []).directive('uiMention', function () {
1919
});
2020
'use strict';
2121

22-
angular.module('ui.mention').controller('uiMention', function ($element, $scope, $attrs, $q, $timeout, $document) {
22+
angular.module('ui.mention').controller('uiMention', ["$element", "$scope", "$attrs", "$q", "$timeout", "$document", function ($element, $scope, $attrs, $q, $timeout, $document) {
2323
var _this2 = this;
2424

2525
// Beginning of input or preceeded by spaces: @sometext
@@ -337,4 +337,4 @@ angular.module('ui.mention').controller('uiMention', function ($element, $scope,
337337
$element.on('input', this.autogrow);
338338
// Initialize autogrow height
339339
$timeout(this.autogrow, true);
340-
});
340+
}]);

dist/mention.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var gulp = require('gulp'),
22
plugins = require('gulp-load-plugins')(),
3-
Karma = require('karma').Server;
3+
Karma = require('karma').Server
4+
ngAnnotate = require('gulp-ng-annotate');
45

56
var paths = {
67
scripts: {
@@ -49,6 +50,7 @@ function scripts(path, concat) {
4950
.pipe(plugins.babel())
5051
.pipe(plugins.angularFilesort())
5152
.pipe(plugins.concat(path.file))
53+
.pipe(ngAnnotate())
5254
.pipe(gulp.dest(path.dest))
5355
.pipe(plugins.uglify({ mangle: false }))
5456
.pipe(plugins.extReplace('.min.js'))

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"angular": "^1.3.18",
4343
"angular-mocks": "^1.3.18",
4444
"chai": "^3.2.0",
45+
"gulp-ng-annotate": "^2.0.0",
4546
"karma": "^0.13.9",
4647
"karma-babel-preprocessor": "^5.2.1",
4748
"karma-chai": "^0.1.0",

0 commit comments

Comments
 (0)