|
|
@ -370,8 +370,6 @@ var inject = function () {
|
|
|
|
var selectElt = angular.element(angular.element(popover.children('div')[0]).children()[2]);
|
|
|
|
var selectElt = angular.element(angular.element(popover.children('div')[0]).children()[2]);
|
|
|
|
var closeElt = angular.element(angular.element(popover.children('div')[0]).children()[3]);
|
|
|
|
var closeElt = angular.element(angular.element(popover.children('div')[0]).children()[3]);
|
|
|
|
|
|
|
|
|
|
|
|
console.log(closeElt);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var currentScope = null,
|
|
|
|
var currentScope = null,
|
|
|
|
currentElt = null;
|
|
|
|
currentElt = null;
|
|
|
|
|
|
|
|
|
|
|
@ -631,16 +629,30 @@ var inject = function () {
|
|
|
|
return tempGet.apply(this, arguments);
|
|
|
|
return tempGet.apply(this, arguments);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
} else if (definition.$get instanceof Array) {
|
|
|
|
|
|
|
|
// it should have a $get
|
|
|
|
|
|
|
|
var tempGet = definition.$get[definition.$get.length - 1];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
definition.$get[definition.$get.length - 1] = function () {
|
|
|
|
|
|
|
|
debug.deps.push({
|
|
|
|
|
|
|
|
name: name,
|
|
|
|
|
|
|
|
imports: annotate(tempGet)
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return tempGet.apply(this, arguments);
|
|
|
|
|
|
|
|
};
|
|
|
|
} else if (typeof definition === 'object') {
|
|
|
|
} else if (typeof definition === 'object') {
|
|
|
|
// it should have a $get
|
|
|
|
// it should have a $get
|
|
|
|
var tempGet = definition.$get;
|
|
|
|
var tempGet = definition.$get;
|
|
|
|
definition.$get = function () {
|
|
|
|
|
|
|
|
|
|
|
|
// preserve original annotations
|
|
|
|
|
|
|
|
definition.$get = annotate(definition.$get);
|
|
|
|
|
|
|
|
definition.$get.push(function () {
|
|
|
|
debug.deps.push({
|
|
|
|
debug.deps.push({
|
|
|
|
name: name,
|
|
|
|
name: name,
|
|
|
|
imports: annotate(tempGet)
|
|
|
|
imports: annotate(tempGet)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return tempGet.apply(this, arguments);
|
|
|
|
return tempGet.apply(this, arguments);
|
|
|
|
};
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
debug.deps.push({
|
|
|
|
debug.deps.push({
|
|
|
|
name: name,
|
|
|
|
name: name,
|
|
|
|