Merge pull request #4455 from EnableSoftware/jquery-placeholder

Added overload for definition of a custom CSS class
This commit is contained in:
Horiuchi_H
2015-05-27 09:19:48 +09:00
2 changed files with 8 additions and 5 deletions
@@ -2,3 +2,7 @@
/// <reference path="jquery.placeholder.d.ts"/>
$('input').placeholder();
// specify custom class
$('input').placeholder({ customClass: 'my-placeholder' });
+4 -5
View File
@@ -1,13 +1,12 @@
// Type definitions for jquery.placeholder.js 2.0.7
// Type definitions for jquery.placeholder.js 2.1.1
// Project: https://github.com/mathiasbynens/jquery-placeholder
// Definitions by: Peter Gill <https://github.com/majorsilence>
// Definitions by: Peter Gill <https://github.com/majorsilence>, Neil Culver <https://github.com/EnableSoftware>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
interface JQuery {
placeholder() : void;
placeholder(options: { customClass: string }) : JQuery
placeholder() : JQuery
}