mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
0e8b207cc3
Summary: Fixed few typos in `./Examples` and `./Libraries` folders. Closes https://github.com/facebook/react-native/pull/4788 Reviewed By: svcscm Differential Revision: D2759918 Pulled By: androidtrunkagent fb-gh-sync-id: d692b5c7f561822353e522f9d4dfde7e60b491cf
32 lines
706 B
JavaScript
32 lines
706 B
JavaScript
/**
|
|
* @providesModule Position
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var PooledClass = require('PooledClass');
|
|
|
|
var twoArgumentPooler = PooledClass.twoArgumentPooler;
|
|
|
|
/**
|
|
* Position does not expose methods for construction via an `HTMLDOMElement`,
|
|
* because it isn't meaningful to construct such a thing without first defining
|
|
* a frame of reference.
|
|
*
|
|
* @param {number} windowStartKey Key that window starts at.
|
|
* @param {number} windowEndKey Key that window ends at.
|
|
*/
|
|
function Position(left, top) {
|
|
this.left = left;
|
|
this.top = top;
|
|
}
|
|
|
|
Position.prototype.destructor = function() {
|
|
this.left = null;
|
|
this.top = null;
|
|
};
|
|
|
|
PooledClass.addPoolingTo(Position, twoArgumentPooler);
|
|
|
|
module.exports = Position;
|