Kernel.js 2.7 Released

58 views
Skip to first unread message

alindsay55661

unread,
May 25, 2012, 8:06:18 PM5/25/12
to kern...@googlegroups.com
Just released Kernel.js 2.7. This release includes a critical bug fix for IE browsers, it is advised that you update. There are no breaking changes.

New features:

Kernel.onRegister(module) - if you define this method it will automatically be called each time a module is registered. This allows you to take actions against a module upon registration. I recently used it to add helper methods to certain modules.

hub.beforeBroadcast(type, data) - if you define this method it will automatically be called before ANY event on this hub is broadcast. The event type and data are passed in as arguments. 

hub.authorized(type, moduleId) - this method authorizes a specific module to listen for a specific event. By default it allows all modules to listen for any event. You can override this method to put any type of security in place you may desire such as checking the event type against a hash of approved modules.

module.hub._internals now includes the following properties: moduleId, moduleType



Dale Herrig

unread,
May 26, 2012, 11:00:05 AM5/26/12
to kern...@googlegroups.com
Alan,


I was running kernel.js 2.6.3 and when switching to  2.7 got the  error, image attached,  

registered[id] is undefined  @ kernel.js  line 404

switched back to 2.6.3 and worked ok.


-dale
kernel_error.JPG

alan lindsay

unread,
May 26, 2012, 2:23:01 PM5/26/12
to kern...@googlegroups.com
Dale, can you send me the code/website you are working with. This portion of Kernel remained untouched so there should be no errors. I can take a look and see what is going on.

Alan

Dale Herrig

unread,
May 27, 2012, 11:51:11 AM5/27/12
to kern...@googlegroups.com
Alan,

Unzipping attached file will create a sub-directory simple-kernel.

cd into simple-kernel/server and  do 'node node-proxy-server.js"  assuming you have node.js installed.  Even though  proxy server can not reach the osi server this should work good enough to show the problem.

open browser to http://localhost:9009/

In firebug should see the earlier attached error.

It's probably something silly I am doing but works with 2.6.3 kernel.


-Dale
simple-kernel_zip

alindsay55661

unread,
May 29, 2012, 1:50:20 AM5/29/12
to kern...@googlegroups.com
Ok, found the bug which applies to Firefox. I have posted a new release with the fix.

Alan

Dale Herrig

unread,
May 29, 2012, 10:08:47 AM5/29/12
to kern...@googlegroups.com
Ok, tried it out, works fine.

Thanks Much,

-Dale
Reply all
Reply to author
Forward
0 new messages