Skip to content

Commit

Permalink
fix for bug that broke getting bare data with
Browse files Browse the repository at this point in the history
promises.
  • Loading branch information
swannodette committed Mar 25, 2010
1 parent 598cf82 commit b8f8ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Promises.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ var Promise = new Class({
req.addEvent('onSuccess', function(r) {
var json = ($type(r) == 'object') ? r : ((!req.options.bare) ? JSON.decode(r) : r),
v;
if(Promise.deref !== null) {
if(Promise.deref !== null && req.options.bare !== true) {
var temp = $get.apply(null, [json].concat(Promise.deref.split(".")));
if(temp !== null && temp !== undefined) {
v = temp;
Expand Down

0 comments on commit b8f8ec3

Please sign in to comment.