CARVIEW |
Select Language
HTTP/2 301
location: https://raw.githubusercontent.com/pluma/obs-model/master/dist/obs-model.amd.min.js
accept-ranges: bytes
age: 0
date: Thu, 24 Jul 2025 23:30:31 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210070-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753399831.698367,VS0,VE1202
vary: Accept-Encoding
x-fastly-request-id: 23b0abb8909716703c0144e47eba5969caedbd9e
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/"1e45bc2e4bc08f1e57c3ba1712064ee160555219ccf26baf4887b72f6e1ce24e"
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: 35A4:1644C:0F13:6FED:6882C215
content-encoding: gzip
accept-ranges: bytes
date: Thu, 24 Jul 2025 23:30:32 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210096-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1753399832.954332,VS0,VE254
vary: Authorization,Accept-Encoding
access-control-allow-origin: *
cross-origin-resource-policy: cross-origin
x-fastly-request-id: 61456f04955adf92935d61cd9535a44c538336d2
expires: Thu, 24 Jul 2025 23:35:32 GMT
source-age: 0
content-length: 684
/*! obs-model 0.5.1 Original author Alan Plum . Released into the Public Domain under the UNLICENSE. @preserve */
define(function(require,exports,module){var aug=require("aug"),obs=require("obs"),noop=function(){};function model(name,attrs){function Model(values){values=values||{};this._destructors=[];var computedAttrs={};var watch={};var key,opts,i;for(key in this.model.attrs){opts=this.model.attrs[key]||{};if(opts.write||opts.read){this[key]=obs.computed({lazy:opts.lazy,write:opts.write,read:opts.read?noop:opts.read,context:this});if(opts.read){computedAttrs[key]=opts.read}if(opts.watch){watch[key]=[].concat(opts.watch)}}else if(values.hasOwnProperty(key)){this[key]=obs.prop(values[key])}else{this[key]=obs.prop()}}for(key in computedAttrs){this[key].read=computedAttrs[key]}for(key in watch){for(i=0;i