Sha256: add25bc3ce2d95ba32715dcb8489afb3ba8ea5c3fc0bc682b946d35d896804d4
Contents?: true
Size: 1.19 KB
Versions: 32
Compression:
Stored size: 1.19 KB
Contents
!(angular => { 'use strict'; function DirtyAwareCollectionModelImports(CollectionDirtyAwareness, CollectionModelBase) { return class DirtyAwareCollectionModel extends CollectionModelBase { constructor(resource, Model) { super(resource, Model); this._collectionDirtyAwareness = new CollectionDirtyAwareness(() => this.collection); // delegated methods this.dirtyItems = this._collectionDirtyAwareness.dirtyItems.bind(this._collectionDirtyAwareness); this.isDirty = this._collectionDirtyAwareness.isDirty.bind(this._collectionDirtyAwareness); this.isPristine = this._collectionDirtyAwareness.isPristine.bind(this._collectionDirtyAwareness); this.revert = this._collectionDirtyAwareness.revert.bind(this._collectionDirtyAwareness); } save(saveParams, initParams) { return this._saveCollection(saveParams, initParams, this.dirtyItems()); } }; } DirtyAwareCollectionModelImports.$inject = ['CollectionDirtyAwareness', 'CollectionModelBase']; angular.module('models.dirtyAwareCollectionModel', []) .service('DirtyAwareCollectionModel', DirtyAwareCollectionModelImports); }(angular));
Version data entries
32 entries across 16 versions & 1 rubygems