Lines Matching defs:Util

13 var Util = {};
178 * Namespaced in Util
186 Util._log_level = 'warn';
187 Util.init_logging = function (level) {
190 level = Util._log_level;
192 Util._log_level = level;
210 Util.Debug = Util.Info = Util.Warn = Util.Error = function (msg) {};
214 Util.Debug = function (msg) { console.log(msg); };
216 Util.Info = function (msg) { console.log(msg); };
218 Util.Warn = function (msg) { console.warn(msg); };
220 Util.Error = function (msg) { console.error(msg); };
228 Util.get_logging = function () {
229 return Util._log_level;
232 Util.init_logging();
234 Util.make_property = function (proto, name, mode, type) {
327 Util.make_properties = function (constructor, arr) {
330 Util.make_property(constructor.prototype, arr[i][0], arr[i][1], arr[i][2]);
334 Util.set_defaults = function (obj, conf, defaults) {
346 Util.Warn('Invalid property ' + keys[i]);
361 Util.decodeUTF8 = function (utf8string) {
379 Util.get_include_uri = function () {
382 Util._loading_scripts = [];
383 Util._pending_scripts = [];
384 Util.load_scripts = function (files) {
387 ls = Util._loading_scripts, ps = Util._pending_scripts;
398 (Util.Engine.presto && this.readyState === 'loaded') ||
416 script.src = Util.get_include_uri() + files[f];
420 if (Util.Engine.trident) {
439 Util.getPosition = (function () {
505 Util.getEventPosition = function (e, obj, scale) {
520 pos = Util.getPosition(obj);
533 Util.addEvent = function (obj, evType, fn) {
546 Util.removeEvent = function (obj, evType, fn) {
559 Util.stopEvent = function (e) {
570 Util.Features = {xpath: !!(document.evaluate), air: !!(window.runtime), query: !!(document.querySelector)};
592 // 'webkit': (function () { try { return (navigator.taintEnabled) ? false : ((Util.Features.xpath) ? ((Util.Features.query) ? 525 : 420) : 419); } catch (e) { return false; } }()),
598 if (Util.Features.xpath) {
599 return (Util.Features.query) ? 525 : 420;
626 Util.Engine = {
636 if (Util.Engine.webkit) {
638 Util.Engine.webkit = detectActualWebkit(Util.Engine.webkit);
642 Util.Flash = (function () {