Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit fd24f49

Browse files
committed
[FT] Move and rename map.js to ui-map.js
1 parent 8e2e7bd commit fd24f49

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"angularui",
99
"map"
1010
],
11-
"main": "./src/map.js",
11+
"main": "./ui-map.js",
1212
"dependencies": {
1313
"angular": ">= 1.0.2",
1414
"angular-ui-utils": "latest"

gruntFile.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ module.exports = function (grunt) {
2626
' * @license <%= pkg.license %>',
2727
' */',
2828
''].join('\n'),
29-
destName : 'out/build/<%= pkg.name %>',
3029
view : {
3130
humaName : "UI Map",
3231
repoName : "ui-map"
@@ -36,7 +35,7 @@ module.exports = function (grunt) {
3635
unit: testConfig('test/karma.conf.js')
3736
},
3837
jshint:{
39-
files:['<%= pkg.name %>.js', 'gruntFile.js', 'test/**/*Spec.js', 'demo/**/*.js'],
38+
files:['<%= meta.view.repoName %>.js', 'gruntFile.js', 'test/**/*Spec.js', 'demo/**/*.js'],
4039
options:{
4140
curly:true,
4241
eqeqeq:true,
@@ -54,7 +53,7 @@ module.exports = function (grunt) {
5453
options: {banner: '<%= meta.banner %>'},
5554
build: {
5655
files: {
57-
'<%= meta.destName %>.min.js': ['<%= pkg.name %>.js']
56+
'out/build/<%= meta.view.repoName %>.min.js': ['<%= meta.view.repoName %>.js']
5857
}
5958
}
6059
},

test/karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ files = [
1313
'components/angular/angular.js',
1414
'components/angular-mocks/angular-mocks.js',
1515
'components/angular-ui-utils/modules/event/event.js',
16-
'src/*.js',
16+
'ui-map.js',
1717
'test/googlemaps.js',
1818
'test/*Spec.js'
1919
];

src/map.js renamed to ui-map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//We create an $apply if it isn't happening. we need better support for this
1313
//We don't want to use timeout because tons of these events fire at once,
1414
//and we only need one $apply
15-
if (!scope.$$phase) scope.$apply();
15+
if (!scope.$$phase){ scope.$apply();}
1616
});
1717
});
1818
}

0 commit comments

Comments
 (0)