Hi all,
Is anyone using mootools server-side with Rhino? I was creating classes
with base.js but wanted to move to mootools... but though mootool's
methods are showing up fine:
js> (new Array).each
function forEach() { [native code for Array.forEach, arity=1] }
My classes are "missing" their instance methods
js> (new Dataset).each_datapoint
js>
The code is nothing special:
var Dataset = new Class({
initialize: function( id ) {
// yeah
},
get: function( attr ) {
// yeah
},
each_datapoint: function( each_datapoint_function ) {
// exactly, nothing special!
}
});
However if I add a class method with extend...
Dataset.extend({
foo: function(a){
return a + 3;
}
});
I can see the method just fine:
js> Dataset.foo
function (a) {
return a + 3;
}
Thoughts? This is wacky.
--
Matthew Beale :: 607 227 0871
Resume & Portfolio @ http://madhatted.com