Sha256: 9b4835e518a1c5b0dea64fd2b538ebbd7dddf3145949e021db58f60cca29a37c

Contents?: true

Size: 754 Bytes

Versions: 2

Compression:

Stored size: 754 Bytes

Contents

	/**
	Represents the current available area in the browser

	@class Screen
	@static
	**/
	var Screen = {};

	/**
	Object holding dimension information for the screen

	@@field
	@static
	@type Object
	**/
	Screen.dimension = {};

	/**
	Checks if the screen dimension information has changed

	@method hasChanged
	@static
	@return boolean
	**/
	Screen.hasChanged = function() {
	    return ($window.width() !== this.dimension.width) ||
	        ($window.height() !== this.dimension.height);
	};

	/**
	Updates the dimension information for the screen 

	@method updateInfo
	@static
	**/
	Screen.updateInfo = function() {
	    this.dimension.width = $window.width();
	    this.dimension.height = $window.height();
	};  

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sideshow-0.4.2 src/general/screen.js
sideshow-0.4.1 src/general/screen.js