Dojo has had a supplement console wrapper (and shipped firebuglite) for
some years now:
{{{
//Be careful to leave 'log' always at the end
var cn = [
assert, count, debug, dir, dirxml, error, group,
groupEnd, info, profile, profileEnd, time, timeEnd,
That plugin is essentially the same thing as using $(body).trigger/bind,
has the overhead of going through the event system and is actually
larger by a few bytes* than my simplified version:
https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js
~phiggins
* or at least it
it would only really matter if you were triggering dom events. Also, the
point about it going the event system and bubbling and whatnot still is
valid.
~phiggins
On 2/3/11 7:38 AM, Fran wrote:
I like this really tiny but clever plugin. I'll definitely keep it in
mine, but still I have the
On 2/3/11 9:12 AM, Poetro wrote:
2011/2/3 Franm...@fran.ie:
I like this really tiny but clever plugin. I'll definitely keep it in mine,
but still I have the question whether using $(document) or $('body') makes
any different. Any idea ?
There is one small difference. The $(document) selector
Dojo's declare() is c3 mro based.
http://svn.dojotoolkit.org/src/dojo/trunk/_base/declare.js
The author, Eugene Lazutkin, I believe is on this list as well.
~phiggins
On 1/24/11 2:59 PM, mckoss wrote:
I've been doing a lot of Python programming, and have found the
implementation of
On 1/14/11 11:36 AM, Poetro wrote:
2011/1/14 Amit Agarwallifea...@gmail.com:
name property of a function returns its name.
(function (){
console.log(arguments.callee.name);
})();
Above code prints (an empty string) instead of . Why?
Where does it print (an empty string)? It doesnt print
The thread I mentioned, regarding Firebug and why (an empty string)
is displayed.
http://groups.google.com/group/firebug-working-group/browse_thread/thread/2f7cff56c06b
~phiggins
On 1/14/11 3:24 PM, Nick Morgan wrote:
I'm guessing this is a joke on the part of the developers - can't
We have a build system we use for production code. In many of the
places we have this same situation we use build pragmas to ensure the
exposed reference is removed in production. eg:
myns.module = (function(){
var internal = true, otherinteral = {};
//excludeStart(debugging,