Permalink
Browse files

minor optimizations in Element.js, Array description corrected

  • Loading branch information...
1 parent 5c6560a commit 197c5d2831ab81835b137404782450a740fd20e8 @kassens kassens committed Jul 26, 2008
Showing with 4 additions and 6 deletions.
  1. +2 −4 Source/Element/Element.js
  2. +1 −1 Source/Native/Array.js
  3. +1 −1 Source/scripts.json
@@ -417,7 +417,7 @@ Element.implement({
toQueryString: function(){
var queryString = [];
- this.getElements('input, select, textarea').each(function(el){
+ this.getElements('input, select, textarea', true).each(function(el){
if (!el.name || el.disabled) return;
var value = (el.tagName.toLowerCase() == 'select') ? Element.getSelected(el).map(function(opt){
return opt.value;
@@ -437,9 +437,7 @@ Element.implement({
getProperties: function(){
var args = $A(arguments);
- return args.map(function(attr){
- return this.getProperty(attr);
- }, this).associate(args);
+ return args.map(this.getProperty, this).associate(args);
},
setProperty: function(attribute, value){
@@ -1,6 +1,6 @@
/*
Script: Array.js
- Contains Array Prototypes like copy, each, contains, and remove.
+ Contains Array Prototypes like each, contains, and erase.
License:
MIT-style license.
View
@@ -18,7 +18,7 @@
"Array": {
"deps": ["Core"],
- "desc": "Contains Array Prototypes like copy, each, contains, and remove."
+ "desc": "Contains Array Prototypes like each, contains, and erase."
},
"Function": {

0 comments on commit 197c5d2

Please sign in to comment.