Skip to content

Commit ed8c6ec

Browse files
committed
Upgrade to release v2.4.0 - Code cleanup
1 parent 376934c commit ed8c6ec

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

js/fileinput.js

-17
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
' <param name="autoPlay" value="false" />\n' +
2424
' <param name="autoStart" value="false" />\n'+
2525
' <param name="quality" value="high" />\n';
26-
2726
var DEFAULT_PREVIEW = '<div class="file-preview-other" ' + STYLE_SETTING + '>\n' +
2827
' <h2><i class="glyphicon glyphicon-file"></i></h2>\n' +
2928
' </div>';
@@ -673,22 +672,6 @@
673672
}
674673
}
675674

676-
$.fn.fileinput = function (options) {
677-
if (!hasFileAPISupport()) {
678-
return;
679-
}
680-
681-
return this.each(function () {
682-
var $this = $(this), data = $this.data('fileinput')
683-
if (!data) {
684-
$this.data('fileinput', (data = new FileInput(this, options)))
685-
}
686-
if (typeof options == 'string') {
687-
data[options]()
688-
}
689-
})
690-
};
691-
692675
//FileInput plugin definition
693676
$.fn.fileinput = function (option) {
694677
if (!hasFileAPISupport()) {

0 commit comments

Comments
 (0)