Skip to content

Commit

Permalink
[enhance] closure: upgraded closure compiler to r08 + fixed detected …
Browse files Browse the repository at this point in the history
…errors
  • Loading branch information
Aqua-Ye committed Dec 20, 2011
1 parent 2372572 commit 06d60a8
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 25 deletions.
2 changes: 1 addition & 1 deletion opabsl/jsbsl/bslDom.js
Expand Up @@ -893,7 +893,7 @@ function bsldom_do_slide_out(dom, maybe_duration, maybe_easing, maybe_cb)
var length = range.text.length;
return normalize_obj({
start_in: document.elementFromPoint(range.boundingLeft, range.boundingTop),
finish_in: document.elementFromPoint(range.boundingLeft + range.boundingWidth, range.boundingTop + range.offsetHeight),
finish_in: document.elementFromPoint(range.boundingLeft + range.boundingWidth, range.boundingTop + range.boundingHeight),
start_at: offset,
finish_at: offset + length,
is_collapsed: length == 0
Expand Down
25 changes: 13 additions & 12 deletions opabsl/jsbsl/bslSession.js
Expand Up @@ -405,16 +405,11 @@ var LowLevelPingLoop = {};
/* ************************************************** */
/* Distant Channel ********************************** */
/**
* A common prototype for [ServerChannel] and [CousinChannel]
* A common prototype for [ServerChannel] and [ClientChannel]
*
* @constructor
*/
distantChannelprototype = {
message_to_post: function(message){
var ser = this.serialize();
return {to:ser,
message:message};
},
var distantChannelPrototype = {

/**
* Send a message along this channel
Expand Down Expand Up @@ -457,6 +452,12 @@ var LowLevelPingLoop = {};
#<End>
}

distantChannelPrototype.message_to_post = function(message){
return { to: this.serialize(),
message: message };
};



/* ************************************************** */
/* Server Channel *********************************** */
Expand Down Expand Up @@ -515,11 +516,11 @@ var LowLevelPingLoop = {};
* @param msg The message, unserialized
* @param ctx Ignored
*/
send: distantChannelprototype.send,
send: distantChannelPrototype.send,

call_no_cps: distantChannelprototype.call_no_cps,
call_no_cps: distantChannelPrototype.call_no_cps,

message_to_post: distantChannelprototype.message_to_post
message_to_post: distantChannelPrototype.message_to_post

}

Expand Down Expand Up @@ -578,13 +579,13 @@ var LowLevelPingLoop = {};
* @param The message, unserialized
* @param ctx Ignored
*/
send: distantChannelprototype.send,
send: distantChannelPrototype.send,

call_no_cps: function(){
throw Error("Not yet implemented");
},

message_to_post: distantChannelprototype.message_to_post
message_to_post: distantChannelPrototype.message_to_post

}

Expand Down
13 changes: 6 additions & 7 deletions opabsl/jsbsl/jQueryExtends.js
Expand Up @@ -478,12 +478,11 @@ function opa_event_to_dom_event(event, name)
if(some_mb.left) result.which = 1;
else if(some_mb.middle) result.which = 3;
else if(some_mb.right) result.which = 2;
else
{
else if (some_mb.delta) {
var delta = some_mb.delta || 0;
result.wheelDelta = delta * 120;
result.detail = - delta * 3;
}
}
}
} else {
result.which = record2obj(key_code).some;
Expand All @@ -509,7 +508,7 @@ function opa_event_to_dom_event(event, name)
if(value_change != null)
{
var change = option2js(value_change);
if (change != null) {
if (change != null && change.from && change.to) {
result.prevVal = change.from;
result.newVal = change.to;
}
Expand Down Expand Up @@ -546,14 +545,14 @@ function tn_encaps(tn, fun){
var types = ['DOMMouseScroll', 'mousewheel'];
function handler (event) {
var args = [].slice.call(arguments, 1), delta = 0, returnValue = true;
event = $.event.fix(event || window.event);
event = jQuery.event.fix(event || window.event);
event.type = "mousewheel";
if (event.wheelDelta) delta = event.wheelDelta / 120;
if (event.detail) delta = - event.detail / 3;
args.unshift(event, delta);
event.wheelDelta = delta; // hack
return $.event.handle.apply(this, args); }
$.event.special.mousewheel = {
return jQuery.event.handle.apply(this, args); }
jQuery.event.special.mousewheel = {
setup: function () {
if (this.addEventListener) for (var i = types.length; i; ) this.addEventListener(types[--i], handler, false);
else this.onmousewheel = handler; },
Expand Down
24 changes: 19 additions & 5 deletions tools/jschecker/README
Expand Up @@ -152,7 +152,7 @@ system have been added.

-----
Code in:
lib/libtrunk_rhino_parser_jarjared.jar
lib/rhino

Rhino
URL: http://www.mozilla.org/rhino
Expand All @@ -161,9 +161,8 @@ License: Netscape Public License and MPL / GPL dual license

Description: Mozilla Rhino is an implementation of JavaScript for the JVM.

Local Modifications: None. We've used JarJar to renamespace the code
post-compilation. See:
http://code.google.com/p/jarjar/
Local Modifications: Minor changes to parsing JSDoc that usually get pushed
up-stream to Rhino trunk.


-----
Expand All @@ -188,7 +187,7 @@ lib/guava.jar

Guava Libraries
URL: http://code.google.com/p/guava-libraries/
Version: R7
Version: r08
License: Apache License 2.0

Description: Google's core Java libraries.
Expand All @@ -210,6 +209,21 @@ Description: Annotations for software defect detection.
Local Modifications: None.


-----
Code in:
lib/jarjar.jar

Jar Jar Links
URL: http://jarjar.googlecode.com/
Version: 1.1
License: Apache License 2.0

Description:
A utility for repackaging Java libraries.

Local Modifications: None.


----
Code in:
lib/junit.jar
Expand Down
Binary file modified tools/jschecker/compiler.jar
Binary file not shown.

0 comments on commit 06d60a8

Please sign in to comment.