summaryrefslogtreecommitdiff
path: root/lib/dijit/Viewport.js.uncompressed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-02 20:06:16 +0400
committerAndrew Dolgov <[email protected]>2013-04-02 20:06:16 +0400
commit870334be3f58507c05bfc72f3edbe5db10af4caf (patch)
tree441e1c41780eb75d422025cabea17724e2cc4a79 /lib/dijit/Viewport.js.uncompressed.js
parent7caa48fe6a3a37bd08f846f90e407ef31171f12c (diff)
remove dojo uncompressed files
Diffstat (limited to 'lib/dijit/Viewport.js.uncompressed.js')
-rw-r--r--lib/dijit/Viewport.js.uncompressed.js50
1 files changed, 0 insertions, 50 deletions
diff --git a/lib/dijit/Viewport.js.uncompressed.js b/lib/dijit/Viewport.js.uncompressed.js
deleted file mode 100644
index 8de455af2..000000000
--- a/lib/dijit/Viewport.js.uncompressed.js
+++ /dev/null
@@ -1,50 +0,0 @@
-define("dijit/Viewport", [
- "dojo/Evented",
- "dojo/on",
- "dojo/ready",
- "dojo/sniff",
- "dojo/_base/window", // global
- "dojo/window" // getBox()
-], function(Evented, on, ready, has, win, winUtils){
-
- // module:
- // dijit/Viewport
-
- /*=====
- return {
- // summary:
- // Utility singleton to watch for viewport resizes, avoiding duplicate notifications
- // which can lead to infinite loops.
- // description:
- // Usage: Viewport.on("resize", myCallback).
- //
- // myCallback() is called without arguments in case it's _WidgetBase.resize(),
- // which would interpret the argument as the size to make the widget.
- };
- =====*/
-
- var Viewport = new Evented();
-
- ready(200, function(){
- var oldBox = winUtils.getBox();
- Viewport._rlh = on(win.global, "resize", function(){
- var newBox = winUtils.getBox();
- if(oldBox.h == newBox.h && oldBox.w == newBox.w){ return; }
- oldBox = newBox;
- Viewport.emit("resize");
- });
-
- // Also catch zoom changes on IE8, since they don't naturally generate resize events
- if(has("ie") == 8){
- var deviceXDPI = screen.deviceXDPI;
- setInterval(function(){
- if(screen.deviceXDPI != deviceXDPI){
- deviceXDPI = screen.deviceXDPI;
- Viewport.emit("resize");
- }
- }, 500);
- }
- });
-
- return Viewport;
-});