comparison src/implab/guard.js @ 3:00779cb63b12

formatting
author cin
date Tue, 06 Jun 2017 19:45:32 +0300
parents fc2517695ee1
children 9c0943c68a90
comparison
equal deleted inserted replaced
2:7d7059d2a810 3:00779cb63b12
1 define([ "dojo/Deferred" ], function(Deferred) { 1 define([ "./Deferred" ], function(Deferred) {
2 var toPromise = function(d) { 2 var toPromise = function(d) {
3 if (d && d.then) 3 if (d && d.then)
4 return d; 4 return d;
5 var d2 = new Deferred(); 5 var d2 = new Deferred();
6 d2.resolve(d); 6 d2.resolve(d);