PageSourceSearch

https://www.orientwatch.co.uk/or/_ui/addons/smarteditaddon/shared/common/js/reprocessPage.js

js orientwatch.co.uk collected 2026-09-28 12:55:54 UTC 703 bytes, 30 lines download raw bytes

1/*
2 * Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved.
3 */
4(function(){
5
6	window.smartedit = window.smartedit || {};
7
8	var onReprocessListeners = [];
9	window.smartedit.reprocessPage = function(){
10		onReprocessListeners.forEach(function( callbackFn ){
11			try{
12				callbackFn();
13			}
14			catch( e ){}
15		});
16	};
17
18	window.smartedit.addOnReprocessPageListener = function( callbackFn ){
19		if( !_isFunction( callbackFn ) ){
20			throw new Error( 'SmartEditAddon - Cannot register page reprocessing listener. Provided callback must be a function.' );
21		}
22
23		onReprocessListeners.push(callbackFn);
24	};
25
26	function _isFunction( obj ){
27		return ( obj && typeof obj === 'function');
28	}
29
30})();

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.