Permalink
Browse files

- updated the version number for 1.2.2 release.

 - got rid of an annoying underscore that was making it impossible for me to sleep.
 - if < || sometimes
  • Loading branch information...
1 parent e29f010 commit f0491d62fbb7e906789aa3733d6a67d43e5af7c9 @kamicane kamicane committed Apr 15, 2009
Showing with 5 additions and 5 deletions.
  1. +1 −1 Source/Class/Class.js
  2. +1 −1 Source/Core/Core.js
  3. +3 −3 Source/Element/Element.Dimensions.js
View
@@ -66,7 +66,7 @@ new Native({name: 'Class', initialize: Class}).extend({
},
wrap: function(self, key, method){
- method = method._origin || method;
+ if (method._origin) method = method._origin;
return function(){
if (method._protected && this._current == null) throw new Error('The method "' + key + '" cannot be called.');
View
@@ -17,7 +17,7 @@ Inspiration:
*/
var MooTools = {
- 'version': '1.2.1',
+ 'version': '1.2.2',
'build': '%build%'
};
@@ -62,10 +62,10 @@ Element.implement({
getOffsets: function(){
if (Browser.Engine.trident){
var bound = this.getBoundingClientRect(), html = this.getDocument().documentElement;
- var is_fixed = styleString(this, 'position') == 'fixed';
+ var isFixed = styleString(this, 'position') == 'fixed';
return {
- x: bound.left + (is_fixed ? 0 : html.scrollLeft) - html.clientLeft,
- y: bound.top + (is_fixed ? 0 : html.scrollTop) - html.clientTop
+ x: bound.left + ((isFixed) ? 0 : html.scrollLeft) - html.clientLeft,
+ y: bound.top + ((isFixed) ? 0 : html.scrollTop) - html.clientTop
};
}

0 comments on commit f0491d6

Please sign in to comment.