Changeset 29030
- Timestamp:
- 01/26/09 06:54:07 (4 years ago)
- Location:
- lang/javascript/jsdeferred/trunk
- Files:
-
- 5 modified
-
jsdeferred.jquery.js (modified) (1 diff)
-
jsdeferred.js (modified) (1 diff)
-
jsdeferred.mini.js (modified) (1 diff)
-
jsdeferred.nodoc.js (modified) (1 diff)
-
jsdeferred.userscript.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/jsdeferred/trunk/jsdeferred.jquery.js
r29028 r29030 2 2 // See http://coderepos.org/share/wiki/JSDeferred 3 3 function Deferred(){return(this instanceof Deferred)? this.init():new Deferred()} 4 Deferred. prototype={4 Deferred.ok=function(x){return x};Deferred.ng=function(x){throw x};Deferred.prototype={ 5 5 init:function(){ 6 6 this._next=null;this.callback={ 7 ok: function(x){return x},8 ng: function(x){throw x}7 ok:Deferred.ok, 8 ng:Deferred.ng 9 9 };return this;}, 10 10 next:function(fun){return this._post("ok",fun)}, -
lang/javascript/jsdeferred/trunk/jsdeferred.js
r29028 r29030 82 82 */ 83 83 function Deferred () { return (this instanceof Deferred) ? this.init() : new Deferred() } 84 Deferred.ok = function (x) { return x }; 85 Deferred.ng = function (x) { throw x }; 84 86 Deferred.prototype = { 85 87 init : function () { 86 88 this._next = null; 87 89 this.callback = { 88 ok: function (x) { return x },89 ng: function (x) { throw x }90 ok: Deferred.ok, 91 ng: Deferred.ng 90 92 }; 91 93 return this; -
lang/javascript/jsdeferred/trunk/jsdeferred.mini.js
r29028 r29030 2 2 // See http://coderepos.org/share/wiki/JSDeferred 3 3 function Deferred(){return(this instanceof Deferred)? this.init():new Deferred()} 4 Deferred. prototype={4 Deferred.ok=function(x){return x};Deferred.ng=function(x){throw x};Deferred.prototype={ 5 5 init:function(){ 6 6 this._next=null;this.callback={ 7 ok: function(x){return x},8 ng: function(x){throw x}7 ok:Deferred.ok, 8 ng:Deferred.ng 9 9 };return this;}, 10 10 next:function(fun){return this._post("ok",fun)}, -
lang/javascript/jsdeferred/trunk/jsdeferred.nodoc.js
r29028 r29030 2 2 // See http://coderepos.org/share/wiki/JSDeferred 3 3 function Deferred () { return (this instanceof Deferred) ? this.init() : new Deferred() } 4 Deferred.ok = function (x) { return x }; 5 Deferred.ng = function (x) { throw x }; 4 6 Deferred.prototype = { 5 7 init : function () { 6 8 this._next = null; 7 9 this.callback = { 8 ok: function (x) { return x },9 ng: function (x) { throw x }10 ok: Deferred.ok, 11 ng: Deferred.ng 10 12 }; 11 13 return this; -
lang/javascript/jsdeferred/trunk/jsdeferred.userscript.js
r29028 r29030 6 6 7 7 function Deferred () { return (this instanceof Deferred) ? this.init() : new Deferred() } 8 Deferred.ok = function (x) { return x }; 9 Deferred.ng = function (x) { throw x }; 8 10 Deferred.prototype = { 9 11 init : function () { 10 12 this._next = null; 11 13 this.callback = { 12 ok: function (x) { return x },13 ng: function (x) { throw x }14 ok: Deferred.ok, 15 ng: Deferred.ng 14 16 }; 15 17 return this;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)