Commit c8313a3f authored by Jason Morawski's avatar Jason Morawski Committed by David Prévot

Imported Debian patch 1.7.2+dfsg-1

parents 2a5d8143 28044c1d

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

dojo (1.7.2+dfsg-1) unstable; urgency=low
* New upstream version
* Updated build rules to support new build system (Closes: #660032).
* Bumped Standards-Version
* Added missing recommended build targets
-- Jason Morawski <rpgdude1@gmail.com> Mon, 20 Feb 2012 16:14:59 -0500
dojo (1.6.1+dfsg-1) unstable; urgency=low
* New upstream version
......
......@@ -4,7 +4,7 @@ Priority: optional
Maintainer: Jason Morawski <rpgdude1@gmail.com>
Uploaders: Frank Habermann <lordlamer@lordlamer.de>
Build-Depends: debhelper (>= 7), shrinksafe
Standards-Version: 3.9.1
Standards-Version: 3.9.2
Homepage: http://dojotoolkit.org
Package: libjs-dojo-core
......
......@@ -8,7 +8,13 @@ clean:
rm -rf release
dh_clean
build:
build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
binary: binary-indep
......@@ -17,7 +23,7 @@ binary-arch:
binary-indep:
dh_testdir
dh_testroot
cd util/buildscripts && java -cp /usr/share/java/shrinksafe.jar org.mozilla.javascript.tools.shell.Main build.js profile=standard version=debian releaseName=. cssOptimize=comments.keepLines optimize=shrinksafe.keepLines action=release
cd util/buildscripts && java -cp /usr/share/java/shrinksafe.jar org.mozilla.javascript.tools.shell.Main ../../dojo/dojo.js baseUrl=../../dojo load=build profile=standard version=debian releaseName=. cssOptimize=comments.keepLines optimize=shrinksafe.keepLines action=release
dh_installchangelogs
dh_installdirs
dh_installdocs
......
define([
"require", // require.toUrl
".", // to export dijit.BackgroundIframe
"dojo/_base/config",
"dojo/dom-construct", // domConstruct.create
"dojo/dom-style", // domStyle.set
"dojo/_base/lang", // lang.extend lang.hitch
"dojo/on",
"dojo/_base/sniff", // has("ie"), has("mozilla"), has("quirks")
"dojo/_base/window" // win.doc.createElement
], function(require, dijit, config, domConstruct, domStyle, lang, on, has, win){
// module:
// dijit/BackgroundIFrame
// summary:
// new dijit.BackgroundIframe(node)
// Makes a background iframe as a child of node, that fills
// area (and position) of node
// TODO: remove _frames, it isn't being used much, since popups never release their
// iframes (see [22236])
var _frames = new function(){
// summary:
// cache of iframes
var queue = [];
this.pop = function(){
var iframe;
if(queue.length){
iframe = queue.pop();
iframe.style.display="";
}else{
if(has("ie") < 9){
var burl = config["dojoBlankHtmlUrl"] || require.toUrl("dojo/resources/blank.html") || "javascript:\"\"";
var html="<iframe src='" + burl + "' role='presentation'"
+ " style='position: absolute; left: 0px; top: 0px;"
+ "z-index: -1; filter:Alpha(Opacity=\"0\");'>";
iframe = win.doc.createElement(html);
}else{
iframe = domConstruct.create("iframe");
iframe.src = 'javascript:""';
iframe.className = "dijitBackgroundIframe";
iframe.setAttribute("role", "presentation");
domStyle.set(iframe, "opacity", 0.1);
}
iframe.tabIndex = -1; // Magic to prevent iframe from getting focus on tab keypress - as style didn't work.
}
return iframe;
};
this.push = function(iframe){
iframe.style.display="none";
queue.push(iframe);
}
}();
dijit.BackgroundIframe = function(/*DomNode*/ node){
// summary:
// For IE/FF z-index schenanigans. id attribute is required.
//
// description:
// new dijit.BackgroundIframe(node)
// Makes a background iframe as a child of node, that fills
// area (and position) of node
if(!node.id){ throw new Error("no id"); }
if(has("ie") || has("mozilla")){
var iframe = (this.iframe = _frames.pop());
node.appendChild(iframe);
if(has("ie")<7 || has("quirks")){
this.resize(node);
this._conn = on(node, 'resize', lang.hitch(this, function(){
this.resize(node);
}));
}else{
domStyle.set(iframe, {
width: '100%',
height: '100%'
});
}
}
};
lang.extend(dijit.BackgroundIframe, {
resize: function(node){
// summary:
// Resize the iframe so it's the same size as node.
// Needed on IE6 and IE/quirks because height:100% doesn't work right.
if(this.iframe){
domStyle.set(this.iframe, {
width: node.offsetWidth + 'px',
height: node.offsetHeight + 'px'
});
}
},
destroy: function(){
// summary:
// destroy the iframe
if(this._conn){
this._conn.remove();
this._conn = null;
}
if(this.iframe){
_frames.push(this.iframe);
delete this.iframe;
}
}
});
return dijit.BackgroundIframe;
});
This diff is collapsed.
This diff is collapsed.
define("dijit/CheckedMenuItem", ["dojo", "dijit", "text!dijit/templates/CheckedMenuItem.html", "dijit/MenuItem"], function(dojo, dijit) {
define([
"dojo/_base/declare", // declare
"dojo/dom-class", // domClass.toggle
"./MenuItem",
"dojo/text!./templates/CheckedMenuItem.html",
"./hccss"
], function(declare, domClass, MenuItem, template){
dojo.declare("dijit.CheckedMenuItem",
dijit.MenuItem,
{
/*=====
var MenuItem = dijit.MenuItem;
=====*/
// module:
// dijit/CheckedMenuItem
// summary:
// A checkbox-like menu item for toggling on and off
return declare("dijit.CheckedMenuItem", MenuItem, {
// summary:
// A checkbox-like menu item for toggling on and off
templateString: dojo.cache("dijit", "templates/CheckedMenuItem.html"),
templateString: template,
// checked: Boolean
// Our checked state
......@@ -15,12 +28,14 @@ dojo.declare("dijit.CheckedMenuItem",
// summary:
// Hook so attr('checked', bool) works.
// Sets the class and state for the check box.
dojo.toggleClass(this.domNode, "dijitCheckedMenuItemChecked", checked);
dijit.setWaiState(this.domNode, "checked", checked);
domClass.toggle(this.domNode, "dijitCheckedMenuItemChecked", checked);
this.domNode.setAttribute("aria-checked", checked);
this._set("checked", checked);
},
onChange: function(/*Boolean*/ checked){
iconClass: "", // override dijitNoIcon
onChange: function(/*Boolean*/ /*===== checked =====*/){
// summary:
// User defined function to handle check/uncheck events
// tags:
......@@ -39,7 +54,4 @@ dojo.declare("dijit.CheckedMenuItem",
this.inherited(arguments);
}
});
return dijit.CheckedMenuItem;
});
define("dijit/ColorPalette", ["dojo", "dijit", "text!dijit/templates/ColorPalette.html", "dijit/_Widget", "dijit/_Templated", "dojo/colors", "dojo/i18n", "dojo/string", "dijit/_PaletteMixin", "i18n!dojo/nls/colors"], function(dojo, dijit) {
dojo.declare("dijit.ColorPalette",
[dijit._Widget, dijit._Templated, dijit._PaletteMixin],
{
define([
"require", // require.toUrl
"dojo/text!./templates/ColorPalette.html",
"./_Widget",
"./_TemplatedMixin",
"./_PaletteMixin",
"dojo/i18n", // i18n.getLocalization
"dojo/_base/Color", // dojo.Color dojo.Color.named
"dojo/_base/declare", // declare
"dojo/dom-class", // domClass.contains
"dojo/dom-construct", // domConstruct.place
"dojo/_base/window", // win.body
"dojo/string", // string.substitute
"dojo/i18n!dojo/nls/colors", // translations
"dojo/colors" // extend dojo.Color w/names of other colors
], function(require, template, _Widget, _TemplatedMixin, _PaletteMixin, i18n, Color,
declare, domClass, domConstruct, win, string){
/*=====
var _Widget = dijit._Widget;
var _TemplatedMixin = dijit._TemplatedMixin;
var _PaletteMixin = dijit._PaletteMixin;
=====*/
// module:
// dijit/ColorPalette
// summary:
// A keyboard accessible color-picking widget
var ColorPalette = declare("dijit.ColorPalette", [_Widget, _TemplatedMixin, _PaletteMixin], {
// summary:
// A keyboard accessible color-picking widget
// description:
......@@ -10,7 +35,7 @@ dojo.declare("dijit.ColorPalette",
// Can be used standalone, or as a popup.
//
// example:
// | <div dojoType="dijit.ColorPalette"></div>
// | <div data-dojo-type="dijit.ColorPalette"></div>
//
// example:
// | var picker = new dijit.ColorPalette({ },srcNode);
......@@ -41,29 +66,35 @@ dojo.declare("dijit.ColorPalette",
// templateString: String
// The template of this widget.
templateString: dojo.cache("dijit", "templates/ColorPalette.html"),
templateString: template,