Changeset 11339
- Timestamp:
- 11/02/07 07:57:19 (10 months ago)
- Location:
- dojo/trunk
- Files:
-
- 4 modified
-
AdapterRegistry.js (modified) (2 diffs)
-
DeferredList.js (modified) (1 diff)
-
NodeList-fx.js (modified) (6 diffs)
-
_base/html.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojo/trunk/AdapterRegistry.js
r8418 r11339 10 10 // in this registry should be of the same arity. 11 11 this.pairs = []; 12 this.returnWrappers = returnWrappers || false; 12 this.returnWrappers = returnWrappers || false; // Boolean 13 13 } 14 14 15 15 dojo.extend(dojo.AdapterRegistry, { 16 register: function( name, check, /*Function*/ wrap, directReturn,override){16 register: function(/*String*/ name, /*Function*/ check, /*Function*/ wrap, /*Boolean?*/ directReturn, /*Boolean?*/ override){ 17 17 // summary: 18 18 // register a check function to determine if the wrap function or 19 19 // object gets selected 20 // name: String20 // name: 21 21 // a way to identify this matcher. 22 // check: Function22 // check: 23 23 // a function that arguments are passed to from the adapter's 24 24 // match() function. The check function should return true if the 25 25 // given arguments are appropriate for the wrap function. 26 // directReturn: Boolean?26 // directReturn: 27 27 // If directReturn is true, the value passed in for wrap will be 28 28 // returned instead of being called. Alternately, the … … 31 31 // the registry to act as a "search" function instead of a 32 32 // function interception library. 33 // override: Boolean?33 // override: 34 34 // If override is given and true, the check function will be given 35 35 // highest priority. Otherwise, it will be the lowest priority -
dojo/trunk/DeferredList.js
r11268 r11339 1 1 dojo.provide("dojo.DeferredList"); 2 2 dojo.declare("dojo.DeferredList", dojo.Deferred, { 3 // Summary: 4 // DeferredList takes an array of existing deferreds and returns a new deferred of its own 5 // this new deferred will typically have its callback fired when all of the deferreds in 6 // the given list have fired their own deferreds. The parameters `fireOnOneCallback` and 7 // fireOnOneErrback, will fire before all the deferreds as appropriate 8 // 9 // list: Array 10 // The list of deferreds to be synchronizied with this DeferredList 11 // fireOnOneCallback: Boolean 12 // Will cause the DeferredLists callback to be fired as soon as any 13 // of the deferreds in its list have been fired instead of waiting until 14 // the entire list has finished 15 // fireonOneErrback: Boolean 16 // Will cause the errback to fire upon any of the deferreds errback 17 // canceller: Function 18 // A deferred canceller function, see dojo.Deferred 19 20 constructor: function(list, /*bool?*/ fireOnOneCallback, /*bool?*/ fireOnOneErrback, /*bool?*/ consumeErrors, /*Function?*/ canceller){ 3 constructor: function(/*Array*/ list, /*Boolean?*/ fireOnOneCallback, /*Boolean?*/ fireOnOneErrback, /*Boolean?*/ consumeErrors, /*Function?*/ canceller){ 4 // summary: 5 // Provides event handling for a group of Deferred objects. 6 // description: 7 // DeferredList takes an array of existing deferreds and returns a new deferred of its own 8 // this new deferred will typically have its callback fired when all of the deferreds in 9 // the given list have fired their own deferreds. The parameters `fireOnOneCallback` and 10 // fireOnOneErrback, will fire before all the deferreds as appropriate 11 // 12 // list: 13 // The list of deferreds to be synchronizied with this DeferredList 14 // fireOnOneCallback: 15 // Will cause the DeferredLists callback to be fired as soon as any 16 // of the deferreds in its list have been fired instead of waiting until 17 // the entire list has finished 18 // fireonOneErrback: 19 // Will cause the errback to fire upon any of the deferreds errback 20 // canceller: 21 // A deferred canceller function, see dojo.Deferred 21 22 this.list = list; 22 23 this.resultList = new Array(this.list.length); -
dojo/trunk/NodeList-fx.js
r11155 r11339 18 18 // wipe in all elements of this NodeList. Returns an instance of dojo._Animation 19 19 // example: 20 // // fade in all tables with class "blah"21 // dojo.query("table.blah").wipeIn().play();20 // Fade in all tables with class "blah": 21 // | dojo.query("table.blah").wipeIn().play(); 22 22 return this._anim(dojo.fx, "wipeIn", args); // dojo._Animation 23 23 }, … … 27 27 // wipe out all elements of this NodeList. Returns an instance of dojo._Animation 28 28 // example: 29 // // wipe out all tables with class "blah"30 // dojo.query("table.blah").wipeOut().play();29 // Wipe out all tables with class "blah": 30 // | dojo.query("table.blah").wipeOut().play(); 31 31 return this._anim(dojo.fx, "wipeOut", args); // dojo._Animation 32 32 }, … … 37 37 // Returns an instance of dojo._Animation 38 38 // example: 39 // // move all tables with class "blah" to 300/30040 // dojo.query("table.blah").slideTo({41 // left: 40,42 // top: 5043 // }).play();39 // | Move all tables with class "blah" to 300/300: 40 // | dojo.query("table.blah").slideTo({ 41 // | left: 40, 42 // | top: 50 43 // | }).play(); 44 44 return this._anim(dojo.fx, "slideTo", args); // dojo._Animation 45 45 }, … … 50 50 // fade in all elements of this NodeList. Returns an instance of dojo._Animation 51 51 // example: 52 // // fade in all tables with class "blah"53 // dojo.query("table.blah").fadeIn().play();52 // Fade in all tables with class "blah": 53 // | dojo.query("table.blah").fadeIn().play(); 54 54 return this._anim(dojo, "fadeIn", args); // dojo._Animation 55 55 }, … … 59 59 // fade out all elements of this NodeList. Returns an instance of dojo._Animation 60 60 // example: 61 // // fade out all elements with class "zork"62 // dojo.query(".zork").fadeOut().play();63 // 64 // // fade them on a delay and do something at the end65 // var fo = dojo.query(".zork").fadeOut();66 // dojo.connect(fo, "onEnd", function(){ /*...*/ });67 // fo.play();61 // Fade out all elements with class "zork": 62 // | dojo.query(".zork").fadeOut().play(); 63 // example: 64 // Fade them on a delay and do something at the end: 65 // | var fo = dojo.query(".zork").fadeOut(); 66 // | dojo.connect(fo, "onEnd", function(){ /*...*/ }); 67 // | fo.play(); 68 68 return this._anim(dojo, "fadeOut", args); // dojo._Animation 69 69 }, … … 74 74 // NodeList across the properties specified. 75 75 // example: 76 // dojo.query(".zork").animateProperty({77 // duration: 500,78 // properties: {79 // color: { start: "black", end: "white" },80 // left: { end: 300 }81 // }82 // }).play();76 // | dojo.query(".zork").animateProperty({ 77 // | duration: 500, 78 // | properties: { 79 // | color: { start: "black", end: "white" }, 80 // | left: { end: 300 } 81 // | } 82 // | }).play(); 83 83 return this._anim(dojo, "animateProperty", args); // dojo._Animation 84 84 } -
dojo/trunk/_base/html.js
r11218 r11339 14 14 // ============================= 15 15 16 /*=====17 dojo.byId = function(id, doc){18 // summary:19 // similar to other library's "$" function, takes a20 // string representing a DOM id or a DomNode and21 // returns the corresponding DomNode. If a Node is22 // passed, this function is a no-op. Returns a23 // single DOM node or null, working around several24 // browser-specific bugs to do so.25 // id: String|DomNode26 // DOM id or DOM Node27 // doc: DocumentElement?28 // optional, defaults to the current value of29 // dojo.doc. Can be used to retreive30 // node references from other documents.31 // return:32 // DomNode33 }34 =====*/35 36 16 if(dojo.isIE || dojo.isOpera){ 37 dojo.byId = function(id, doc){ 17 dojo.byId = function(/*String|DOMNode*/ id, /*DocumentElement?*/ doc){ 18 // summary: 19 // similar to other library's "$" function, takes a 20 // string representing a DOM id or a DomNode 21 // and returns the corresponding DomNode. If a Node is 22 // passed, this function is a no-op. Returns a 23 // single DOM node or null, working around several 24 // browser-specific bugs to do so. 25 // id: 26 // DOM id or DOM Node 27 // doc: 28 // optional, defaults to the current value of 29 // dojo.doc. Can be used to retreive 30 // node references from other documents. 38 31 if(dojo.isString(id)){ 39 32 var _d = doc || dojo.doc; … … 244 237 245 238 /*===== 246 dojo.getComputedStyle = function(node){ //DomNode247 // summary: 248 // returns a "computed style" object.239 dojo.getComputedStyle = function(node){ 240 // summary: 241 // Returns a "computed style" object. 249 242 // description: 250 243 // get "computed style" object which can be used to gather … … 326 319 dojo._getOpacity = function(node){ 327 320 // summary: 328 // returns the current opacity of the passed node as a321 // Returns the current opacity of the passed node as a 329 322 // floating-point value between 0 and 1. 330 323 // node: DomNode