fix param for update()

Changes to be committed:
	modified:   src/overlay.js
This commit is contained in:
leesei 2017-01-06 11:30:09 +08:00
parent 18454ff3de
commit 286ba36bf3

View File

@ -41,6 +41,7 @@
* compatibility. * compatibility.
* @member OverlayPlacement * @member OverlayPlacement
* @memberof OpenSeadragon * @memberof OpenSeadragon
* @see OpenSeadragon.Placement
* @static * @static
* @readonly * @readonly
* @type {Object} * @type {Object}
@ -400,7 +401,7 @@
* @param {OpenSeadragon.Point|OpenSeadragon.Rect|Object} location * @param {OpenSeadragon.Point|OpenSeadragon.Rect|Object} location
* If an object is specified, the options are the same than the constructor * If an object is specified, the options are the same than the constructor
* except for the element which can not be changed. * except for the element which can not be changed.
* @param {OpenSeadragon.Placement} position * @param {OpenSeadragon.Placement} placement
*/ */
update: function(location, placement) { update: function(location, placement) {
var options = $.isPlainObject(location) ? location : { var options = $.isPlainObject(location) ? location : {