Questions tagged [js.class]
10 questions
10
votes
2 answers
Has anyone used JS.Class and liked it?
Has anyone used JS.Class and liked it? I 've used Joose before and find it really good in creating clean code that is very readable and maintainable. Any real life stories about JS.Class?

DLS
- 5,313
- 8
- 37
- 50
2
votes
1 answer
How to import JSON object with functions inside?
Good day,
I am playing with JS.Class right now and I'm making a text-based game. For now, it is executed in a browser but eventually,
it will be executed in a Node.js environment managing sockets and ANSI colors supports for players using a…

Cybrix
- 3,248
- 5
- 42
- 61
1
vote
1 answer
How to build JS.Class
I'm feeling completely stupid, but I can't find the correct way to build JS.Class.
What I mean by building is merging all javascript files into one and minimize them.
I'm ok with other tools (different from what they suggested).
I tried with command…

Francesco Belladonna
- 11,361
- 12
- 77
- 147
1
vote
0 answers
Can JS.Class classes extend classes from other libraries?
Premise
I've inherited some code that uses JS.Class for some of it's classes. That is, these classes are created using new JS.Class({...}). JS.Class implements Ruby's object system in JavaScript, meaning that internally it is rather complex.
I am…

cspotcode
- 1,832
- 1
- 13
- 17
1
vote
1 answer
Clean Prototype fork (good idea?)
Is there a prototype fork that doesn't come with any DOM/ajax parts? I really prefer jQuery for these, and would rather not carry the extra baggage. So far I've been using the excellent JS.Class library, which doesn't even touch built-in classes…

Daniel Ribeiro
- 3,110
- 3
- 23
- 49
1
vote
2 answers
In js.class, is it possible to call other functions from the super class
I'm using js.class and i want to be able to call functions of super class in the sub class. I know i can use this.callSuper() to call the current overridden function from the super class but what about calling other overridden functions?
For example…

Ali
- 931
- 10
- 22
0
votes
3 answers
How comes this "if" passes but for real it shouldn't?
Good day, first I would like to tell that I am not proud to post a whole source code. I couldn't isolate the problem in a smaller chunk.
Here is a snapshot of the file:
getRoomById : function( areaId, roomId ) {
if ( this.hAreas.get( areaId )…

Cybrix
- 3,248
- 5
- 42
- 61
0
votes
1 answer
How do I check if the returned value is a JS.Hash?
I am playing with JS.Class v.3.0 http://jsclass.jcoglan.com/ and I would like to find a way to detect the instance of an object.
var Car = new JS.Class({
hColors : new JS.Hash([]),
initialize : function()…

Cybrix
- 3,248
- 5
- 42
- 61
0
votes
1 answer
How Can I add class using jquery form other file?
Hi I have this javascript(jquery) for adding classes to my and tags in my view
So I want to change from view to specific js file like main.js, I create…

Demain
- 19
- 5
0
votes
1 answer
Trying to build a calculator in java but I keep getting the .class error
I just started a java class that my summer program was offering and we were tasked with creating a simple calculator. I have all the different cases created and all the variables accounted for but for some reason I keep getting a .class error and I…