quick_script 0.11.10 → 0.11.11
Sign up to get free protection for your applications and to get access to all the features.
data/lib/quick_script/version.rb
CHANGED
@@ -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,
|
735
|
-
|
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
|
-
-
|
9
|
-
version: 0.11.
|
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-
|
17
|
+
date: 2012-11-12 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|