CARVIEW |
Select Language
HTTP/2 301
location: https://raw.githubusercontent.com/pluma/obs-model/master/dist/obs-model.min.js
accept-ranges: bytes
age: 0
date: Thu, 24 Jul 2025 19:56:25 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210081-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753386984.325133,VS0,VE1188
vary: Accept-Encoding
x-fastly-request-id: 4b253ee4fe239a8496117df6a0de14f60c6aca12
content-length: 0
HTTP/2 200
cache-control: max-age=300
content-security-policy: default-src 'none'; style-src 'unsafe-inline'; sandbox
content-type: text/plain; charset=utf-8
etag: W/"0010d86eff3f741fe78c67d2746add6ba5e47de241c33ed4c09ae0041db92c68"
strict-transport-security: max-age=31536000
x-content-type-options: nosniff
x-frame-options: deny
x-xss-protection: 1; mode=block
x-github-request-id: AA44:08DE:11821:36EA4:68828FE7
content-encoding: gzip
accept-ranges: bytes
date: Thu, 24 Jul 2025 19:56:25 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210091-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753386986.567209,VS0,VE270
vary: Authorization,Accept-Encoding
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: 59fad212043b12ef9d52d4a4346148a931741108
expires: Thu, 24 Jul 2025 20:01:25 GMT
source-age: 0
content-length: 628
/*! obs-model 0.5.1 Original author Alan Plum . Released into the Public Domain under the UNLICENSE. @preserve */
var aug=require("aug"),obs=require("obs"),noop=function(){};function model(t,i){function r(t){t=t||{};this._destructors=[];var i={};var r={};var s,o,e;for(s in this.model.attrs){o=this.model.attrs[s]||{};if(o.write||o.read){this[s]=obs.computed({lazy:o.lazy,write:o.write,read:o.read?noop:o.read,context:this});if(o.read){i[s]=o.read}if(o.watch){r[s]=[].concat(o.watch)}}else if(t.hasOwnProperty(s)){this[s]=obs.prop(t[s])}else{this[s]=obs.prop()}}for(s in i){this[s].read=i[s]}for(s in r){for(e=0;e