Changeset 502
- Timestamp:
- 01/15/06 03:15:34 (3 years ago)
- Files:
-
- mochikit/branches/scriptaculous/MochiKit/DragAndDrop.js (modified) (4 diffs)
- mochikit/branches/scriptaculous/MochiKit/Effects.js (modified) (5 diffs)
- mochikit/branches/scriptaculous/MochiKit/New.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
mochikit/branches/scriptaculous/MochiKit/DragAndDrop.js
r501 r502 114 114 this.options._containers = []; 115 115 var containment = this.options.containment; 116 if ((typeof containment== 'object') &&116 if ((typeof(containment) == 'object') && 117 117 (containment.constructor == Array)) { 118 118 MochiKit.Iter.forEach(containment, function (c) { … … 312 312 this.element = MochiKit.DOM.getElement(element); 313 313 314 if (options.handle && (typeof options.handle== 'string')) {314 if (options.handle && (typeof(options.handle) == 'string')) { 315 315 this.handle = MochiKit.DOM.getElementsByTagAndClassName(null, 316 316 options.handle, this.element)[0]; … … 441 441 442 442 var revert = this.options.revert; 443 if (revert && typeof revert== 'function') {443 if (revert && typeof(revert) == 'function') { 444 444 revert = revert(this.element); 445 445 } … … 492 492 493 493 if (this.options.snap) { 494 if (typeof this.options.snap== 'function') {494 if (typeof(this.options.snap) == 'function') { 495 495 p = this.options.snap(p[0], p[1]); 496 496 } else { mochikit/branches/scriptaculous/MochiKit/Effects.js
r501 r502 34 34 multiple: function (element, effect, options) { 35 35 var elements; 36 if (((typeof element== 'object') ||37 (typeof element== 'function')) &&36 if (((typeof(element) == 'object') || 37 (typeof(element) == 'function')) && 38 38 (element.length)) { 39 39 elements = element; … … 115 115 var timestamp = new Date().getTime(); 116 116 117 var position = (typeof effect.options.queue== 'string') ?117 var position = (typeof(effect.options.queue) == 'string') ? 118 118 effect.options.queue : effect.options.queue.position; 119 119 … … 170 170 instances: new Array(), 171 171 get: function (queueName) { 172 if (typeof queueName!= 'string') {172 if (typeof(queueName) != 'string') { 173 173 return queueName; 174 174 } … … 207 207 this.event('beforeStart'); 208 208 if (!this.options.sync) { 209 Effect.Queues.get(typeof this.options.queue== 'string' ?209 Effect.Queues.get(typeof(this.options.queue) == 'string' ? 210 210 'global' : this.options.queue.scope).add(this); 211 211 } … … 259 259 cancel: function () { 260 260 if (!this.options.sync) { 261 Effect.Queues.get(typeof this.options.queue== 'string' ?261 Effect.Queues.get(typeof(this.options.queue) == 'string' ? 262 262 'global' : this.options.queue.scope).remove(this); 263 263 } mochikit/branches/scriptaculous/MochiKit/New.js
r501 r502 635 635 dispatch: function (callback, request, transport, json) { 636 636 MochiKit.Iter.forEach(this.responders, function (responder) { 637 if (responder[callback] && typeof responder[callback] == 'function') { 637 if (responder[callback] && 638 typeof(responder[callback]) == 'function') { 638 639 try { 639 640 responder[callback].apply(responder, [request, transport, json]);
