lib/volt/models/persistors/model_store.rb
# Run save is called on the client side after a queued setImmediate.  It does the
# saving on the front-end.  Adding a setImmediate allows multiple changes to be
# batched together.
Run save is called on the client side after a queued setImmediate.  It does the
saving on the front-end.  Adding a setImmediate allows multiple changes to be
batched together.
Run save is called on the client side after a queued setImmediate . It does the saving on the front - end . Adding a setImmediate allows multiple changes to be batched together .
def run_save
        `
        clearImmediate(self.saveTimer);
        delete self.saveTimer;
        `
        StoreTasks.save(collection, @model.path, self_attributes).then do
          save_promises = @save_promises
          @save_promises = nil
          save_promises.each {|promise|  promise.resolve(nil) }
        end.fail do |errors|
          save_promises = @save_promises
          @save_promises = nil
          save_promises.each {|promise|  promise.reject(errors) }
        end
      end
def run_save ` 
        clearImmediate(self.saveTimer);
        delete self.saveTimer;
         ` StoreTasks . save ( collection , @model . path , self_attributes ) . then do save_promises = @save_promises @save_promises = nil save_promises . each { | promise | promise . resolve ( nil ) } end . fail do | errors | save_promises = @save_promises @save_promises = nil save_promises . each { | promise | promise . reject ( errors ) } end end
Run save is called on the client side after a queued setImmediate.
Run save is called on the client side after a queued setImmediate .
# Clear the save timer