Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
1f1959d9
Commit
1f1959d9
authored
Dec 12, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Angular tweaks to work around chrome GC bug
parent
90c9d9ef
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletions
+22
-1
src/app/directives/addPanel.js
+5
-0
src/app/directives/kibanaPanel.js
+0
-1
src/vendor/angular/angular.js
+17
-0
No files found.
src/app/directives/addPanel.js
View file @
1f1959d9
...
...
@@ -12,6 +12,11 @@ function (angular, app, _) {
return
{
restrict
:
'A'
,
link
:
function
(
$scope
,
elem
)
{
$scope
.
$on
(
"$destroy"
,
function
()
{
elem
.
remove
();
});
$scope
.
$watch
(
'panel.type'
,
function
()
{
var
_type
=
$scope
.
panel
.
type
;
$scope
.
reset_panel
(
_type
);
...
...
src/app/directives/kibanaPanel.js
View file @
1f1959d9
...
...
@@ -13,7 +13,6 @@ function (angular) {
'<div class="row-fluid panel-extra"><div class="panel-extra-container">'
+
'<span class="extra row-button" ng-show="panel.editable != false">'
+
'<span confirm-click="row.panels = _.without(row.panels,panel)" '
+
'confirmation="Are you sure you want to remove this {{panel.type}} panel?" class="pointer">'
+
...
...
src/vendor/angular/angular.js
View file @
1f1959d9
...
...
@@ -8464,6 +8464,21 @@ function $RootScopeProvider(){
}
else
{
this
.
$$childHead
=
this
.
$$childTail
=
child
;
}
// RASHID: Fix for chrome GC bug
child
.
$on
(
'$destroy'
,
function
()
{
if
(
Child
)
Child
.
prototype
=
null
;
// Async so that the $broadcast('$destroy') can traverse the rest
setTimeout
(
function
()
{
child
.
__proto__
=
{};
for
(
var
i
in
child
)
child
[
i
]
=
null
;
child
=
null
;
return
null
;
});
});
return
child
;
},
...
...
@@ -8893,6 +8908,8 @@ function $RootScopeProvider(){
// see: https://github.com/angular/angular.js/issues/1313#issuecomment-10378451
this
.
$parent
=
this
.
$$nextSibling
=
this
.
$$prevSibling
=
this
.
$$childHead
=
this
.
$$childTail
=
null
;
parent
=
this
.
$$nextSibling
=
this
.
$$prevSibling
=
this
.
$$childHead
=
this
.
$$childTail
=
null
;
},
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment