Opened 12 years ago

Closed 12 years ago

#3405 closed defect (fixed)

Patch for error in Deferred documentation

Reported by: guest Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

Index: /dojo/_base/Deferred.js =================================================================== --- /dojo/_base/Deferred.js (revision 9078) +++ /dojo/_base/Deferred.js (working copy) @@ -160,7 +160,7 @@

callbacks can be added at any time. Deferred style:

  • function renderLotsOfData(data, callback){

+ function renderLotsOfData(data){

var d = new dojo.Deferred(); try{ for(var x in data){

@@ -186,7 +186,7 @@

timeout helps show why Deferreds rock: Deferred style and async func

  • function renderLotsOfData(data, callback){

+ function renderLotsOfData(data){

var d = new dojo.Deferred(); setTimeout(function(){ try{

Change History (2)

comment:1 Changed 12 years ago by guest

Index: /dojo/_base/Deferred.js
===================================================================
--- /dojo/_base/Deferred.js	(revision 9078)
+++ /dojo/_base/Deferred.js	(working copy)
@@ -160,7 +160,7 @@
 	//		callbacks can be added at any time.
 	//
 	//			// Deferred style:
-	//			function renderLotsOfData(data, callback){
+	//			function renderLotsOfData(data){
 	//				var d = new dojo.Deferred();
 	//				try{
 	//					for(var x in data){
@@ -186,7 +186,7 @@
 	//		timeout helps show why Deferreds rock:
 	//
 	//			// Deferred style and async func
-	//			function renderLotsOfData(data, callback){
+	//			function renderLotsOfData(data){
 	//				var d = new dojo.Deferred();
 	//				setTimeout(function(){
 	//					try{

comment:2 Changed 12 years ago by dante

Resolution: fixed
Status: newclosed

(In [9686]) fixes #3405 - callback goes unused in example in documentation.

Note: See TracTickets for help on using tickets.