Changeset 23737 for lang/javascript/jsob
- Timestamp:
- 11/15/08 01:23:56 (8 weeks ago)
- Files:
-
- 1 modified
-
lang/javascript/jsob/trunk/src/jsob.js (modified) (9 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/jsob/trunk/src/jsob.js
- Property svn:executable deleted
r19266 r23737 2 2 3 3 Jsob 4 4 5 5 register job with method chain by JavaScript 6 6 Author 37to … … 10 10 11 11 Copyright (c) 2008 37to 12 12 13 13 Permission is hereby granted, free of charge, to any person obtaining a copy 14 14 of this software and associated documentation files (the "Software"), to deal … … 17 17 copies of the Software, and to permit persons to whom the Software is 18 18 furnished to do so, subject to the following conditions: 19 19 20 20 The above copyright notice and this permission notice shall be included in 21 21 all copies or substantial portions of the Software. 22 22 23 23 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 24 24 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, … … 39 39 for( var i in extend ) this[i] = extend[i]; 40 40 for( var i in learn ) this.learn(i,learn[i][1],learn[i][0]); 41 41 42 42 //call construct 43 43 this.initialize(); … … 45 45 }; 46 46 Jsob.prototype = { 47 47 48 48 task : [/* function, function ... */], 49 49 _methods : {/* name : method, name : method ... */}, … … 54 54 55 55 initialize : function(){}, 56 56 57 57 learn : function(name,method,type){ 58 58 this._methods[name] = method; … … 87 87 return this; 88 88 }, 89 89 90 90 //reverse order action 91 91 reverse : function(){ … … 101 101 }, 102 102 103 next : function(){103 next : function(){ 104 104 if(this._first) this._first = false; 105 105 if(this.task.length == this._pointer){ … … 155 155 156 156 _execNow : function(name){ 157 return function(){157 return function(){ 158 158 var args = this._copyArgs(arguments); 159 159 var self = this;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)