Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for bug that broke getting bare data with

promises.
  • Loading branch information...
commit b8f8ec3ecf820c960e6ee1c138968ba0a86dab01 1 parent 598cf82
David Nolen swannodette authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Promises.js
2  Promises.js
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.