Lines Matching refs:function
21 Array.prototype.push8 = function (num) {
25 Array.prototype.push16 = function (num) {
29 Array.prototype.push32 = function (num) {
42 Array.prototype.map = function(fun /*, thisp*/)
45 if (typeof fun != "function")
71 Util.init_logging = function (level) {
85 'log' : function(m) {},
86 'warn' : function(m) {},
87 'error': function(m) {}};
91 Util.Debug = Util.Info = Util.Warn = Util.Error = function (msg) {};
93 case 'debug': Util.Debug = function (msg) { console.log(msg); };
94 case 'info': Util.Info = function (msg) { console.log(msg); };
95 case 'warn': Util.Warn = function (msg) { console.warn(msg); };
96 case 'error': Util.Error = function (msg) { console.error(msg); };
103 Util.get_logging = function () {
110 // Set configuration default for Crockford style function namespaces
111 Util.conf_default = function(cfg, api, defaults, v, mode, type, defval, desc) {
114 // Default getter function
115 getter = function (idx) {
124 // Default setter function
125 setter = function (val, idx) {
136 val = function () {};
149 // Set the getter function
154 // Set the setter function with extra sanity checks
156 api['set_' + v] = function (val, idx) {
180 Util.conf_defaults = function(cfg, api, defaults, arr) {
194 Util.getPosition = function (obj) {
207 Util.getEventPosition = function (e, obj, scale) {
230 Util.addEvent = function (obj, evType, fn){
242 Util.removeEvent = function(obj, evType, fn){
254 Util.stopEvent = function(e) {
268 //'presto': (function() {
270 'presto': (function() { return (!window.opera) ? false : true; }()),
272 'trident': (function() {
274 'webkit': (function() {
276 //'webkit': (function() {
278 'gecko': (function() {
283 Util.Engine.webkit = (function(v) {
290 Util.Flash = (function(){