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
97e5a046
Commit
97e5a046
authored
Mar 05, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed memory leak in bootstrap Typeahead code, Fixes #1497
parent
7293ee08
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
16 deletions
+21
-16
src/app/directives/grafanaPanel.js
+0
-8
src/app/directives/templateParamSelector.js
+5
-0
src/app/features/dashboard/dashboardCtrl.js
+10
-7
src/vendor/bootstrap/bootstrap.js
+6
-1
No files found.
src/app/directives/grafanaPanel.js
View file @
97e5a046
...
...
@@ -37,14 +37,6 @@ function (angular, $, config) {
var
getter
=
$parse
(
attr
.
type
),
panelType
=
getter
(
$scope
);
var
newScope
=
$scope
.
$new
();
$scope
.
kbnJqUiDraggableOptions
=
{
revert
:
'invalid'
,
helper
:
function
()
{
return
$
(
'<div style="width:200px;height:100px;background: rgba(100,100,100,0.50);"/>'
);
},
placeholder
:
'keep'
};
// compile the module and uncloack. We're done
function
loadModule
(
$module
)
{
$module
.
appendTo
(
elem
);
...
...
src/app/directives/templateParamSelector.js
View file @
97e5a046
...
...
@@ -75,6 +75,11 @@ function (angular, app, _, $) {
$button
.
focus
();
});
$scope
.
$on
(
'$destroy'
,
function
()
{
$button
.
unbind
();
typeahead
.
destroy
();
});
$compile
(
elem
.
contents
())(
$scope
);
}
};
...
...
src/app/features/dashboard/dashboardCtrl.js
View file @
97e5a046
...
...
@@ -31,13 +31,6 @@ function (angular, $, config, _) {
$scope
.
setupDashboard
(
dashboardData
);
};
$scope
.
registerWindowResizeEvent
=
function
()
{
angular
.
element
(
window
).
bind
(
'resize'
,
function
()
{
$timeout
.
cancel
(
resizeEventTimeout
);
resizeEventTimeout
=
$timeout
(
function
()
{
$scope
.
$broadcast
(
'render'
);
},
200
);
});
};
$scope
.
setupDashboard
=
function
(
dashboardData
)
{
$rootScope
.
performance
.
dashboardLoadStart
=
new
Date
().
getTime
();
$rootScope
.
performance
.
panelsInitialized
=
0
;
...
...
@@ -127,5 +120,15 @@ function (angular, $, config, _) {
$rootScope
.
$broadcast
(
'render'
);
};
$scope
.
registerWindowResizeEvent
=
function
()
{
angular
.
element
(
window
).
bind
(
'resize'
,
function
()
{
$timeout
.
cancel
(
resizeEventTimeout
);
resizeEventTimeout
=
$timeout
(
function
()
{
$scope
.
$broadcast
(
'render'
);
},
200
);
});
$scope
.
$on
(
'$destroy'
,
function
()
{
angular
.
element
(
window
).
unbind
(
'resize'
);
});
};
});
});
src/vendor/bootstrap/bootstrap.js
View file @
97e5a046
...
...
@@ -1956,7 +1956,7 @@
return
items
?
this
.
process
(
items
)
:
this
}
,
process
:
function
(
items
)
{
,
process
:
function
(
items
)
{
var
that
=
this
items
=
$
.
grep
(
items
,
function
(
item
)
{
...
...
@@ -2050,6 +2050,11 @@
.
on
(
'click'
,
$
.
proxy
(
this
.
click
,
this
))
.
on
(
'mouseenter'
,
'li'
,
$
.
proxy
(
this
.
mouseenter
,
this
))
.
on
(
'mouseleave'
,
'li'
,
$
.
proxy
(
this
.
mouseleave
,
this
))
},
destroy
:
function
()
{
this
.
$element
.
off
().
removeData
(
'typeahead'
);
this
.
$menu
.
off
();
}
,
eventSupported
:
function
(
eventName
)
{
...
...
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