quick_script 0.11.10 → 0.11.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module QuickScript
2
- VERSION = "0.11.10"
2
+ VERSION = "0.11.11"
3
3
  end
@@ -731,10 +731,11 @@ class @Collection
731
731
  @model_state(ko.modelStates.APPENDING)
732
732
  else if op == Collection.INSERT
733
733
  @model_state(ko.modelStates.INSERTING)
734
- load : (scope, callback)->
735
- @reset()
734
+ load : (scope, opts)->
735
+ opts = {callback: opts} if (!opts?) || (opts instanceof Function)
736
+ @reset() unless opts.reset? && !opts.reset
736
737
  @scope(scope) if scope?
737
- @_load(@scope(), Collection.REPLACE, callback)
738
+ @_load(@scope(), Collection.REPLACE, opts.callback)
738
739
  update : (callback)->
739
740
  @_load(@scope(), Collection.UPDATE, callback)
740
741
  insert : (scope, callback)->
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 11
8
- - 10
9
- version: 0.11.10
8
+ - 11
9
+ version: 0.11.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alan Graham
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-11-09 00:00:00 -05:00
17
+ date: 2012-11-12 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20