Skip to content

Commit

Permalink
update compilatio
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardocereto committed Sep 27, 2011
1 parent f71474c commit 4a04d7a
Show file tree
Hide file tree
Showing 28 changed files with 108 additions and 209 deletions.
Empty file modified .hgignore
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified Makefile
100644 → 100755
Empty file.
Empty file modified README
100644 → 100755
Empty file.
Empty file modified README.rst
100644 → 100755
Empty file.
17 changes: 10 additions & 7 deletions dist/gas.core.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
* @constructor
*/
var GasHelper = function() {
this['tracker'] = window['_gat']['_getTrackerByName']();
this['tracker'] = window['_gat']['_getTrackers']()[0];
};

/**
* Returns true if the element is foun in the Array, false otherwise.
* Returns true if the element is found in the Array, false otherwise.
*
* @param {Array} obj Array to search at.
* @param {object} item Item to search form.
Expand Down Expand Up @@ -101,8 +101,10 @@ GasHelper.prototype._sanitizeString = function(str, strict_opt) {
*/
GasHelper.prototype._addEventListener = function(obj, evt, ofnc, bubble) {
var fnc = function(event) {
event = event || window.event;
event.target = event.target || event.srcElement;
if (!event || !event.target) {
event = window.event;
event.target = event.srcElement;
}
return ofnc.call(obj, event);
};
// W3C model
Expand Down Expand Up @@ -146,7 +148,7 @@ GasHelper.prototype._DOMReady = function(callback) {
arguments.callee.done = true;
callback.apply(this, arguments);
};
if (/interactive|complete/.test(document.readyState)) return cb();
if (/^(interactive|complete)/.test(document.readyState)) return cb();
this._addEventListener(document, 'DOMContentLoaded', cb, false);
this._addEventListener(window, 'load', cb, false);
};
Expand Down Expand Up @@ -175,7 +177,7 @@ if (_prev_gas._accounts_length >= 0) {
return;
}

//Shortcuts, these speed up the code
//Shortcuts, these speed up and compress the code
var document = window.document,
toString = Object.prototype.toString,
hasOwn = Object.prototype.hasOwnProperty,
Expand All @@ -184,7 +186,8 @@ var document = window.document,
trim = String.prototype.trim,
sindexOf = String.prototype.indexOf,
aindexOf = Array.prototype.indexOf,
url = document.location.href;
url = document.location.href,
documentElement = document.documentElement;

/**
* GAS Sigleton
Expand Down
2 changes: 1 addition & 1 deletion dist/gas.core.min.js
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4a04d7a

Please sign in to comment.