/*! NoR - v0.0.0 - 2012-08-11 * http://vic.github.com/NoR * Copyright (c) 2012 Victor Borja; Licensed MIT */ (function(a,b){var c=function(a,b){var d=function(){if(arguments.length===0)return b;b!==arguments[0]&&f(b=arguments[0])},e=[],f=function(a){for(var b in e)e[b]&&e[b](a)},g=function(a){if(a===d)return;var b=e.indexOf(a);b<0&&e.push(a)},h=function(a){var b=e.indexOf(a);b>-1&&(e[b]=null)};return d.constructor=c,d.cellName=a,d.toString=function(){return"{"+a+":"+b+"}"},d.subscribe=g,d.bind=function(a){d.subscribe(a),a.subscribe(d)},d},d=function(a,e,f){var h=arguments,i={},j=g(a,i),k,l=function(){k&&clearTimeout(k),k=setTimeout(function(){a.apply(f(),j)},0)},m=function(){if(this instanceof arguments.callee){var a=d.apply(b,h);for(var e in arguments)arguments[e]&&arguments[e].constructor===c?arguments[e].bind(a[e]):a[e](arguments[e]);return a}for(var e in arguments)j[e](arguments[e]);return arguments.callee};f=i.self=c("self",f);for(var n in j)m[j[n].cellName]=m[n]=j[n];m.self=f,m.length=j.length,m.toString=function(){var a=[];for(var b in j)a.push(j[b].cellName+":"+j[b]());return"{"+a.join(", ")+"}"};if(e){var o=g(e,i);e.apply(f(),o)}f.subscribe(l);for(var n in j)j[n].subscribe(l);return m},e=/^function\s+\(([^\)]+)\)/,f=/,?\s+/,g=function(a,b){var d=a.toString().match(e)[1].split(f),g=[],b=b||{};for(var h in d)b[d[h]]||(b[d[h]]=c(d[h])),g[h]=b[d[h]];return g};a(d)})(typeof module=="object"&&function(a){module.exports=a}||function(a){NoR=a});