diff options
author | Jose Antonio Marquez | 2012-06-20 16:47:37 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-06-20 16:47:37 -0700 |
commit | 313a62245400e6c8cfa6d2f02c603cc7f01ddfc6 (patch) | |
tree | c207d1290be0e894a57b03098bbb7bbe5f2aee86 /node_modules/montage/data/pledge.js | |
parent | 2496e0d0b0ac5f8c53b12de77f0feda69ce4a2f4 (diff) | |
parent | 392a559e90357d48c910a07617261483b2b45476 (diff) | |
download | ninja-313a62245400e6c8cfa6d2f02c603cc7f01ddfc6.tar.gz |
Merge branch 'refs/heads/Ninja-Internal' into Document
Diffstat (limited to 'node_modules/montage/data/pledge.js')
-rwxr-xr-x | node_modules/montage/data/pledge.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/node_modules/montage/data/pledge.js b/node_modules/montage/data/pledge.js index 49cb0441..d75f6440 100755 --- a/node_modules/montage/data/pledge.js +++ b/node_modules/montage/data/pledge.js | |||
@@ -10,13 +10,13 @@ | |||
10 | @requires montage/core/logger | 10 | @requires montage/core/logger |
11 | */ | 11 | */ |
12 | var Montage = require("montage").Montage; | 12 | var Montage = require("montage").Montage; |
13 | var Q = require("core/promise"); | 13 | var Promise = require("core/promise").Promise; |
14 | var logger = require("core/logger").logger("pledge"); | 14 | var logger = require("core/logger").logger("pledge"); |
15 | /** | 15 | /** |
16 | @class module:montage/data/pledge.Pledge | 16 | @class module:montage/data/pledge.Pledge |
17 | @extends module:montage/core/core.Montage | 17 | @extends module:montage/core/promise.Promise |
18 | */ | 18 | */ |
19 | var Pledge = exports.Pledge = Montage.create(Montage, /** @lends module:montage/data/pledge.Pledge# */ { | 19 | var Pledge = exports.Pledge = Montage.create(Promise, /** @lends module:montage/data/pledge.Pledge# */ { |
20 | 20 | ||
21 | /** | 21 | /** |
22 | Description TODO | 22 | Description TODO |
@@ -200,11 +200,11 @@ var PledgedSortedSet = exports.PledgedSortedSet = Montage.create(Pledge, /** @le | |||
200 | Checks if the pledged array is empty.<br/> | 200 | Checks if the pledged array is empty.<br/> |
201 | <b>Note:</b> This value is not constant as depending upon the type of backing store, the number of objects returned may vary over time. | 201 | <b>Note:</b> This value is not constant as depending upon the type of backing store, the number of objects returned may vary over time. |
202 | @function | 202 | @function |
203 | @returns {Boolean} <code>true</code> if the array is not empty, <code>false</code> otherwise. | 203 | @returns {Boolean} <code>true</code> if the array is empty, <code>false</code> otherwise. |
204 | */ | 204 | */ |
205 | empty: { | 205 | empty: { |
206 | value: function () { | 206 | value: function () { |
207 | return length == 0; | 207 | return this.length() == 0; |
208 | } | 208 | } |
209 | }, | 209 | }, |
210 | 210 | ||