Angular tweaks to work around chrome GC bug
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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">'+
|
||||
|
||||
Reference in New Issue
Block a user