PageSourceSearch

https://papabu.co.kr/receipt/directive/angular-enter.js

js papabu.co.kr collected 2026-10-02 02:01:24 UTC 570 bytes, 24 lines download raw bytes

1/**
2 * Created by jack on 15. 6. 19..
3 */
4/*global angular */
5(function (ng) {
6    'use strict';
7
8    var app = ng.module('ngEnter', []);
9
10    app.directive('ngEnter', function () {
11        return function (scope, element, attrs) {
12            element.bind("keydown keypress", function (event) {
13                if(event.which === 13) {
14                    scope.$apply(function (){
15                        scope.$eval(attrs.ngEnter);
16                    });
17
18                    event.preventDefault();
19                }
20            });
21        };
22    });
23
24}(angular));

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.