Commit 1a3a266f by Tomek Romik Committed by Qiang Xue

Changed Array.prototype.slice.call() into jQuery's $.each function for consistency

parent b3f0f7dc
...@@ -87,7 +87,7 @@ yii.validation = (function ($) { ...@@ -87,7 +87,7 @@ yii.validation = (function ($) {
pub.addMessage(messages, options.tooMany); pub.addMessage(messages, options.tooMany);
} }
Array.prototype.slice.call(files).forEach(function(file) { $(files).each(function(i, file) {
if ( options.extensions && options.extensions.length > 0 ) { if ( options.extensions && options.extensions.length > 0 ) {
index = file.name.lastIndexOf('.'); index = file.name.lastIndexOf('.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment