This commit is contained in:
Brian Ford 2014-12-11 14:35:10 -08:00
parent 2d0e8abff0
commit d3e7bd6ec4
3 changed files with 13 additions and 4 deletions

13
dist/hint.js vendored
View File

@ -630,6 +630,11 @@ function controllerDecorator($delegate) {
*/
var originalModule = angular.module;
function processController(ctrlName) {
nameToControllerMap[ctrlName] = true;
sendMessageForControllerName(ctrlName);
}
function sendMessageForGlobalController(name) {
hint.logMessage(MODULE_NAME,
'add `' + name + '` to a module',
@ -682,10 +687,14 @@ angular.module = function() {
originalController = module.controller;
module.controller = function(controllerName, controllerConstructor) {
nameToControllerMap[controllerName] = true;
sendMessageForControllerName(controllerName);
if ((controllerName !== null) && (typeof controllerName === 'object')) {
Object.keys(controllerName).forEach(processController);
} else {
processController(controllerName);
}
return originalController.apply(this, arguments);
};
return module;
};

View File

@ -1,6 +1,6 @@
{
"name": "AngularJS Batarang",
"version": "0.7.3",
"version": "0.7.4",
"description": "Extends the Developer Tools, adding tools for debugging and profiling AngularJS applications.",
"devtools_page": "devtoolsBackground.html",
"manifest_version": 2,

View File

@ -1,6 +1,6 @@
{
"name": "angularjs-batarang",
"version": "0.7.3",
"version": "0.7.4",
"description": "chrome extension for inspecting angular apps",
"main": "hint.js",
"devDependencies": {