Add (incomplete) bootstrap.js externs

This commit is contained in:
Frederic Junod
2013-03-11 12:37:50 +01:00
parent 7be0203cbe
commit 6d90a9987d
2 changed files with 22 additions and 0 deletions

View File

@@ -211,6 +211,7 @@ def examples_star_json(name, match):
'//json.js',
'//jquery-1.7.js',
'externs/bingmaps.js',
'externs/bootstrap.js',
'externs/geojson.js',
'externs/proj4js.js',
'externs/tilejson.js',

21
externs/bootstrap.js vendored Normal file
View File

@@ -0,0 +1,21 @@
/**
* @fileoverview Externs for bootstrap.js
*
* @see http://twitter.github.com/bootstrap/javascript.html
* @externs
*/
/**
* @param {String|Object.<string,*>=} option
* @return {!jQuery}
*/
jQuery.prototype.popover = function(option) {};
/**
* @param {String|Object.<string,*>=} option
* @return {!jQuery}
*/
jQuery.prototype.tooltip = function(option) {};