diff --git a/debugger/src/directives.js b/debugger/src/directives.js
index 8790acf7c..fd24f22dd 100644
--- a/debugger/src/directives.js
+++ b/debugger/src/directives.js
@@ -14,7 +14,7 @@ var module = angular.module('xe.directives', []);
module.directive('uiEnter', function() {
return function($scope, element, attrs) {
- element.bind("keydown keypress", function(e) {
+ element.bind('keydown keypress', function(e) {
if(e.which === 13) {
$scope.$apply(function(){
$scope.$eval(attrs.uiEnter);
@@ -27,7 +27,7 @@ module.directive('uiEnter', function() {
module.directive('uiEscape', function() {
return function($scope, element, attrs) {
- element.bind("keydown keypress", function(e) {
+ element.bind('keydown keypress', function(e) {
if(e.which === 27) {
$scope.$apply(function(){
$scope.$eval(attrs.uiEscape);
@@ -38,3 +38,14 @@ module.directive('uiEscape', function() {
};
});
+module.directive('uiScrollDownOn', function() {
+ return {
+ priority: 1,
+ link: function($scope, element, attrs) {
+ $scope.$watch(attrs.uiScrollDownOn, function() {
+ element[0].scrollTop = element[0].scrollHeight;
+ });
+ }
+ };
+});
+
diff --git a/debugger/src/filters.js b/debugger/src/filters.js
index 0ebf9eb78..9cb2d144e 100644
--- a/debugger/src/filters.js
+++ b/debugger/src/filters.js
@@ -12,11 +12,11 @@
var module = angular.module('xe.filters', []);
-module.filter("hex32", function() {
+module.filter('hex32', function() {
return function(number) {
if (number !== null && number !== undefined) {
- var str = "" + number.toString(16).toUpperCase();
- while (str.length < 8) str = "0" + str;
+ var str = '' + number.toString(16).toUpperCase();
+ while (str.length < 8) str = '0' + str;
return str;
}
};