Skip to content

Commit

Permalink
making it possible to overwrite can.isPromise
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbmeyer committed Mar 22, 2015
1 parent 592377c commit 1c36cb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compute/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ steal("can/util", function(can){
},
// read a promise
{
test: can.isPromise,
test: function(value){
return can.isPromise(value);
},
read: function(value, prop, index, options, state){
if (!state.foundObservable && options.foundObservable) {
options.foundObservable(value, index);
Expand Down

0 comments on commit 1c36cb1

Please sign in to comment.