PageSourceSearch

https://www.rf.se/webapp-resource/4.4a2092cb182ce49ac4022b/360.488…/1670938983922/webapp-assets.js

js rf.se collected 2026-10-01 10:28:25 UTC 1,495 bytes, 45 lines download raw bytes

1AppRegistry.registerBundle({applicationId:'pre-render|0.0.4',bundle: {"en":{},"sv":{}}});
2AppRegistry.registerModule({applicationId:'pre-render|0.0.4',path:'/template/main',module:function(define){define(function(require){var _=require('underscore');return function(obj){
3var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
4with(obj||{}){
5__p+='<div id="'+
6((__t=( appContext.getWebAppNamespace('app') ))==null?'':__t)+
7'"></div>';
8}
9return __p;
10};});}});
11AppRegistry.registerModule({applicationId:'pre-render|0.0.4',path:'/main',module:function(define){'use strict';define(function(require) {
12	'use strict';
13 
14	var _          = require('underscore');
15	var Component  = require('Component');
16	var template   = require('/template/main');
17 
18	return Component.extend({
19 
20	   template: template,
21 
22	   filterState: function(state) {
23		  return _.extend({}, state);
24	   },
25	   templateFunctions: function() {
26			var _this = this;
27
28			return {
29				// Functions allows rendering of sub views, with optional data to be pushed into the renderer. If no data the whole state will be present
30				renderPartial: function(partialName, data) {
31					var template = require('/template/partials/' + partialName);
32					if (template) {
33						if (data) {
34							return _this.renderTemplate(template, data);
35						} else {
36							return _this.renderTemplate(template, _this.state);
37						}
38					} else {
39						return 'No partial template found';
40					}
41				}
42			}
43		}
44	});
45 });}});

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.