Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Remove dependence on MooTools 1.2 legacy code.
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking committed Feb 10, 2012
1 parent 9c68148 commit ed55ff3
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion libraries/joomla/html/html/behavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ public static function tree($id, $params = array(), $root = array())
$opt['onExpand'] = (array_key_exists('onExpand', $params)) ? '\\' . $params['onExpand'] : null;
$opt['onSelect'] = (array_key_exists('onSelect', $params)) ? '\\' . $params['onSelect'] : null;
$opt['onClick'] = (array_key_exists('onClick', $params)) ? '\\' . $params['onClick']
: '\\function(node){ window.open(node.data.url, $chk(node.data.target) ? node.data.target : \'_self\'); }';
: '\\function(node){ window.open(node.data.url, node.data.target != null ? node.data.target : \'_self\'); }';

$options = JHtmlBehavior::_getJSObject($opt);

Expand Down
2 changes: 1 addition & 1 deletion media/system/js/mootree-uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ var MooTreeControl = new Class({
if (pcs.length == 2) con[pcs[0].trim()] = pcs[1].trim();
}
}
if ($chk(c[i].id)) {
if (c[i].id != null) {
con.id = 'node_'+c[i].id;
}
node = parentNode.insert(con);
Expand Down
4 changes: 2 additions & 2 deletions media/system/js/mootree.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions media/system/js/swf-uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Swiff.Uploader = new Class({
};

var path = this.options.path;
if (!path.contains('?')) path += '?noCache=' + $time(); // cache in IE
if (!path.contains('?')) path += '?noCache=' + Date.now; // cache in IE

// container options for Swiff class
this.options.container = this.box = new Element('span', {'class': 'swiff-uploader-box'}).inject(document.id(this.options.container) || document.body);
Expand Down Expand Up @@ -204,7 +204,7 @@ Swiff.Uploader = new Class({

update: function(data) {
// the data is saved right to the instance
$extend(this, data);
Object.append(this, data);
this.fireEvent('queue', [this], 10);
return this;
},
Expand Down Expand Up @@ -316,7 +316,7 @@ Swiff.Uploader = new Class({

var data = this.options.data || {};
if ($type(append) == 'string') data[append] = hash;
else $extend(data, hash);
else Object.append(data, hash);

this.setOptions({data: data});
},
Expand Down Expand Up @@ -360,7 +360,7 @@ Swiff.Uploader = new Class({

});

$extend(Swiff.Uploader, {
Object.append(Swiff.Uploader, {

STATUS_QUEUED: 0,
STATUS_RUNNING: 1,
Expand Down Expand Up @@ -430,7 +430,7 @@ Swiff.Uploader.File = new Class({
},

update: function(data) {
return $extend(this, data);
return Object.append(this, data);
},

validate: function() {
Expand Down
14 changes: 7 additions & 7 deletions media/system/js/swf.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion media/system/js/uploader-uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var FancyUpload2 = new Class({
// compat
limitSize: 0,
limitFiles: 0,
validateFile: $lambda(true)
validateFile: Function.from(true)
},

initialize: function(status, list, options) {
Expand Down
Loading

0 comments on commit ed55ff3

Please sign in to comment.