1angular.module('main.directives') 2 3 /** 4 * Bind scope function to the "Enter" keypress 5 */ 6 .directive('acEnter', function () { 7 return function (scope, element, attrs) { 8 element.bind("keydown keypress", function (event) { 9 if (event.which === 13) { 10 scope.$apply(function () { 11 scope.$eval(attrs.acEnter); 12 }); 13 event.preventDefault(); 14 } 15 }); 16 }; 17 });
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.