v0.7.4
This commit is contained in:
parent
2d0e8abff0
commit
d3e7bd6ec4
13
dist/hint.js
vendored
13
dist/hint.js
vendored
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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": {
|
||||
|
Reference in New Issue
Block a user