This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var NativeSuperizer = function () { | |
var method = arguments.callee.caller | |
this.meta.superizeMethod(method.name) | |
return this.SUPER.apply(this, arguments) | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SomeClass.js */ | |
Class("SomeClass", { | |
use : ["jquery.js", "OtherClass"], | |
after : { | |
initialize : function() { | |
new OtherClass(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
methods : { | |
load : function() { | |
//load element: new source button | |
this.newSourceButton = new Interface.Button({buttonValue : "New Source"}); | |
var me = this | |
this.newSourceButton.load(this.mid1Element, function () { me.onSourceButtonClick.apply(me, arguments }) | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class('App', { | |
isa : 'Symbie.Application', | |
trait : 'JooseX.Class.Singleton', | |
does : [ | |
'SymbieX.History', | |
'SymbieX.Tracker.GoogleAnalytics' | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('Task/Joose/NodeJS') | |
use('KiokuJS.Backend.CouchDB', function () { | |
// class declaration | |
Class('Person', { | |
has : { | |
self : null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Lets say we have a replica, already stored in the DB and in the live set (I call it - in the scope): | |
var rep = { | |
attrib : 'some_value' | |
} | |
// then user mutates it with rep.setAttrib('new_value') | |
var rep = { | |
attrib : 'new_value' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
calc_hashes : function (strings_array) { | |
var cont = this.CONT | |
Joose.A.each(strings_array, function (string) { | |
cont.AND(function () { | |
var THROW = this.getTHROW() | |
var CONTINUE = this.getCONTINUE() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Module dependencies. | |
*/ | |
var sys = require('sys') | |
var puts = sys.puts | |
var express = require('express'), | |
connect = require('connect'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class('Some.Class', { | |
has : { | |
attr : { | |
meta : Vero.Attribute, | |
is : 'rw' | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class('My.Attribute', { | |
meta : Joose.Meta.Class, | |
isa : Joose.Managed.Attribute, | |
methods : { | |
getSetter : function () { | |
}, | |