Update jQuery.Watermark, add tests

This commit is contained in:
Boris Yankov
2013-01-09 11:30:35 +02:00
parent ab9e6db3bd
commit 2bc074c287
2 changed files with 42 additions and 3 deletions
-19
View File
@@ -1,19 +0,0 @@
// Type definitions for Watermark plugin for jQuery 3.1.4
// Project: http://jquery-watermark.googlecode.com
// Definitions by: https://github.com/anwarjaved
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery-1.8.d.ts"/>
interface WatermarkOptions {
className?: string; // Default class name for all watermarks
useNative?: bool; // If true, plugin will detect and use native browser support for watermarks, if available. (e.g., WebKit's placeholder attribute.)
hideBeforeUnload?: bool; // If true, all watermarks will be hidden during the window beforeunload event.
}
interface JQuery {
watermark(text : string, options?: WatermarkOptions): JQuery;
}