Remove angular array parameter notation, as we have gulp-ng-annotate now

before-bootstrap
Candid Dauth 2016-03-04 20:18:01 +01:00
rodzic 638125c267
commit eb189dd0e0
10 zmienionych plików z 22 dodań i 22 usunięć

Wyświetl plik

@ -9,7 +9,7 @@
};
} ]);
fp.app.factory("fpMap", [ "fpUtils", "fpSocket", "fpMapMessages", "fpDialogs", "fpMapMarkers", "fpMapPopups", "$templateCache", "$compile", "fpMapLines", "fpMapTypes", "fpMapViews", "$rootScope", "fpMapPad", "fpMapToolbox", "$timeout", "fpMapLegend", "fpMapSearch", function(fpUtils, fpSocket, fpMapMessages, fpDialogs, fpMapMarkers, fpMapPopups, $templateCache, $compile, fpMapLines, fpMapTypes, fpMapViews, $rootScope, fpMapPad, fpMapToolbox, $timeout, fpMapLegend, fpMapSearch) {
fp.app.factory("fpMap", function(fpUtils, fpSocket, fpMapMessages, fpDialogs, fpMapMarkers, fpMapPopups, $templateCache, $compile, fpMapLines, fpMapTypes, fpMapViews, $rootScope, fpMapPad, fpMapToolbox, $timeout, fpMapLegend, fpMapSearch) {
var maps = { };
var ret = { };
@ -443,6 +443,6 @@
map.socket.updateBbox(bbox);
});
}
} ]);
});
})(FacilPad, jQuery, angular, FacilMap, OpenLayers);

Wyświetl plik

@ -1,6 +1,6 @@
(function(fp, $, ng, undefined) {
fp.app.factory("fpMapPopups", [ "$compile", "$parse", "$templateCache", "fpUi", "$timeout", function($compile, $parse, $templateCache, fpUi, $timeout) {
fp.app.factory("fpMapPopups", function($compile, $parse, $templateCache, fpUi, $timeout) {
return function(map) {
var openPopups = [ ];
@ -77,6 +77,6 @@
}
};
};
} ]);
});
})(FacilPad, jQuery, angular);

Wyświetl plik

@ -1,6 +1,6 @@
(function(fp, $, ng, undefined) {
fp.app.factory("fpMapSearch", [ "$rootScope", "$templateCache", "$compile", "fpUtils", function($rootScope, $templateCache, $compile, fpUtils) {
fp.app.factory("fpMapSearch", function($rootScope, $templateCache, $compile, fpUtils) {
var namefinder = new FacilMap.NameFinder.Nominatim();
return function(map) {
@ -30,6 +30,6 @@
$compile(el)(scope);
scope.$evalAsync(); // $compile only replaces variables on next digest
};
} ]);
});
})(FacilPad, jQuery, angular);

Wyświetl plik

@ -14,7 +14,7 @@
}
});
fp.app.factory("fpMapToolbox", [ "$compile", "$templateCache", "fpTable", function($compile, $templateCache, fpTable) {
fp.app.factory("fpMapToolbox", function($compile, $templateCache, fpTable) {
return function(map) {
var scope = map.socket.$new();
@ -47,6 +47,6 @@
$compile($($templateCache.get("map-toolbox.html")).appendTo(map.map.div))(scope);
scope.$evalAsync(); // $compile only replaces variables on next digest
}
} ]);
});
})(FacilPad, jQuery, angular);

Wyświetl plik

@ -1,6 +1,6 @@
(function(fp, $, ng, undefined) {
fp.app.factory("fpMapTypes", [ "fpDialogs", "fpUtils", function(fpDialogs, fpUtils) {
fp.app.factory("fpMapTypes", function(fpDialogs, fpUtils) {
return function(map) {
var ret = {
editTypes : function() {
@ -101,6 +101,6 @@
};
return ret;
};
} ]);
});
})(FacilPad, jQuery, angular);

Wyświetl plik

@ -1,6 +1,6 @@
(function(fp, $, ng, undefined) {
fp.app.factory("fpMapViews", [ "fpDialogs", function(fpDialogs) {
fp.app.factory("fpMapViews", function(fpDialogs) {
return function(map) {
var ret = {
saveView : function() {
@ -56,6 +56,6 @@
return ret;
};
} ]);
});
})(FacilPad, jQuery, angular);

Wyświetl plik

@ -1,7 +1,7 @@
(function(fp, $, ng, undefined) {
// From http://stackoverflow.com/a/11277751/242365
fp.app.factory("fpSocket", [ "$rootScope", "fpUtils", function($rootScope, fpUtils) {
fp.app.factory("fpSocket", function($rootScope, fpUtils) {
return function(padId) {
var scope = $rootScope.$new();
@ -146,6 +146,6 @@
return scope;
};
} ]);
});
})(FacilPad, jQuery, angular);

Wyświetl plik

@ -11,7 +11,7 @@
};
});
fp.app.factory("fpTable", [ "fpSocket", "fpDialogs", "$rootScope", "fpTypeFields", function(fpSocket, fpDialogs, $rootScope, fpTypeFields) {
fp.app.factory("fpTable", function(fpSocket, fpDialogs, $rootScope, fpTypeFields) {
function _getField(type, fieldName) {
for(var i=0; i<type.fields.length; i++) {
if(type.fields[i].name == fieldName)
@ -56,6 +56,6 @@
fpDialogs.open("table.html", socket, "Table", null, true);
}
};
} ]);
});
})(FacilPad, jQuery, angular);

Wyświetl plik

@ -1,6 +1,6 @@
(function(fp, $, ng, undefined) {
fp.app.directive("fpSpinner", [ "$parse", function($parse) {
fp.app.directive("fpSpinner", function($parse) {
return {
restrict: 'A',
link: function(scope, element, attrs) {
@ -17,9 +17,9 @@
});
}
}
} ]);
});
fp.app.directive("fpColourPicker", [ "fpUtils", "$templateCache", "$rootScope", "$compile", function(fpUtils, $templateCache, $rootScope, $compile) {
fp.app.directive("fpColourPicker", function(fpUtils, $templateCache, $rootScope, $compile) {
var colourPicker = $($templateCache.get("colour-picker.html")).appendTo("body").hide();
var scope = $rootScope.$new();
scope.colours = [ "ffffff", "ffccc9", "ffce93", "fffc9e", "ffffc7", "9aff99", "96fffb", "cdffff", "cbcefb", "cfcfcf", "fd6864",
@ -62,7 +62,7 @@
});
}
}
} ]);
});
fp.app.directive("fpTitle", function() {
return {

Wyświetl plik

@ -1,6 +1,6 @@
(function(fp, $, ng, undefined) {
fp.app.factory("fpUtils", [ "$parse", function($parse) {
fp.app.factory("fpUtils", function($parse) {
var fpUtils = { };
@ -130,7 +130,7 @@
};
return fpUtils;
} ]);
});
fp.app.filter('fpObjectFilter', function($filter){
return function(input, query) {