Skip to content

Commit

Permalink
Merge branch 'RB_1.7' of git@gitproxy:glow/glow1 into RB_1.7
Browse files Browse the repository at this point in the history
Conflicts:
	CONTRIBUTORS
  • Loading branch information
elson committed Apr 20, 2010
2 parents 9dfcc63 + 8b2f04d commit 59ad0f6
Show file tree
Hide file tree
Showing 16 changed files with 584 additions and 40 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTORS
Expand Up @@ -13,6 +13,6 @@ Tom Yandell
Ted Littledale

Additional contributors:
Richard Hubbard
Gilles Ruppert
Richard Hubbard
Gilles Ruppert
Max Noé
5 changes: 3 additions & 2 deletions src/anim/anim.js
Expand Up @@ -46,8 +46,9 @@
(function() {
var queue = [], //running animations
queueLen = 0,
intervalTime = 1, //ms between intervals
intervalTime = 13, //ms between intervals
interval; //holds the number for the interval

manager = {
/**
@name glow.anim-manager.addToQueue
Expand Down Expand Up @@ -591,7 +592,7 @@
**/
r.fadeIn = function(element, duration, opts){
r.fadeTo(element, 1, duration, opts);
return r.fadeTo(element, 1, duration, opts);
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/dom/dom.js
Expand Up @@ -1209,7 +1209,7 @@
If nodespec is a NodeList, then the its first node will be used.
@returns {glow.dom.NodeList}
@returns {Boolean} True if all NodeList elements are within nodespec
@example
var myNodeList = glow.dom.get("input");
Expand Down
1 change: 1 addition & 0 deletions src/dragdrop/dragdrop.js
Expand Up @@ -863,6 +863,7 @@
if (opts.onEnter) listeners[i++] = addListener(this, 'enter', this._opts.onEnter, this);
if (opts.onLeave) listeners[i++] = addListener(this, 'leave', this._opts.onLeave, this);
if (opts.onDrop) listeners[i++] = addListener(this, 'drop', this._opts.onDrop, this);
if (opts.onAfterDrop) listeners[i++] = addListener(this, 'afterDrop', this._opts.onAfterDrop, this);

this._dragListener = addListener(this._handle, 'mousedown', this._startDragMouse, this);

Expand Down
13 changes: 8 additions & 5 deletions src/events/events.js
Expand Up @@ -372,7 +372,7 @@
<dl>
<dt>mouseenter</dt>
<dd>Fires when the mouse enters this element specifically, does not bubble</dd>
<dt>mouseleave/dt>
<dt>mouseleave</dt>
<dd>Fires when the mouse leaves this element specifically, does not bubble</dd>
</dl>
Expand Down Expand Up @@ -512,10 +512,13 @@
/**
@name glow.events.removeListener
@function
@description Removes a listener created with addListener
@description Removes listener(s) created with addListener
@param {Number|Number[]} ident An identifier or array of identifiers.
Idenftifiers are returned from {@link glow.events.addListener}.
If array of identifiers is provided, each listener specified will be removed.
@param {Number} ident An identifier returned from {@link glow.events.addListener}.
@returns {Boolean}
@example
Expand Down Expand Up @@ -1095,4 +1098,4 @@
glow.events = r;
glow.events.listenersByObjId = listenersByObjId;
}
});
});
11 changes: 4 additions & 7 deletions src/forms/forms.js
Expand Up @@ -47,14 +47,11 @@ glow.forms = {};
@param {Object} [opts]
@param {Function} [opts.onValidate] Handles the 'validate' event when all tests are complete. Default is glow.forms.feedback.defaultFeedback.
@example
myForm = new glow.forms.Form(
glow.dom.get("#htmlFormId"),
{
onValidate: function(results) {
// ...
}
myForm = new glow.forms.Form("#htmlFormId" ,{
onValidate: function(results) {
// ...
}
);
});
*/
glow.forms.Form = function(formNode, opts) { /*debug*///console.log("glow.forms.Form#new("+formNode+", "+opts+")");
/**
Expand Down
9 changes: 4 additions & 5 deletions src/glow/glow.js
Expand Up @@ -286,12 +286,11 @@
glow._removeReadyBlock("widgetsCss");
*/
_addReadyBlock: function(name) {
if (name in glow._readyBlockers) {
throw new Error("Blocker '" + name +"' already exists");
if ( !glow._readyBlockers[name] ) {
glow._readyBlockers[name] = true;
glow.isReady = false;
blockersActive++;
}
glow._readyBlockers[name] = true;
glow.isReady = false;
blockersActive++;
return glow;
},

Expand Down

0 comments on commit 59ad0f6

Please sign in to comment.