View gist:227342
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('Test.Run.Harness.Browser.UI.Viewport', { | |
xtype : 'my-viewport', | |
isa : Ext.Viewport, | |
have : { | |
title : null, | |
harness : null |
View gist:227345
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
Ext.ns('Test.Run.Harness.Browser.UI') | |
Test.Run.Harness.Browser.UI.Viewport = Ext.extend(Ext.Viewport, { | |
title : null, | |
harness : null, | |
initComponent : function () { |
View gist:241770
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('Symbie.Application', { | |
isa : Ext.util.Observable, | |
meta : JooseX.Bridge.Ext, | |
trait : 'JooseX.CPS', | |
does : [ 'Symbie.ID' ], | |
View Class methods & Singletons
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('Name', { | |
//usual methods | |
does : {}, | |
has : {} | |
methods : {}, | |
//class methods/attributes | |
my : { | |
does : {}, |
View gist:299549
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', { | |
customBuilder : { <-- info | |
something here | |
} | |
}) |
View gist:300508
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
Role('JooseX.Class.Triggered', { | |
stem : { | |
have : { | |
attributesMC : Class({ | |
isa : Joose.Managed.StemElement.Attributes, | |
propertyMetaClass : Class({ | |
isa : Joose.Managed.Attribute, | |
does : JooseX.Attribute.Trigger | |
}) |
View gist:304824
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 x = {} | |
typeof x == 'Object' //true | |
x === Object //false |
View gist:355591
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('Some.Module', { | |
VERSION : 0.01, | |
use : { | |
'Some.Another.Module' : 0.01, | |
'Yet.Another.Module' : 0.03 | |
}, | |
EXPORT : [ 'func1', 'func2' ], |
View gist:375198
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 a = function (Joose, glob) { | |
eval("console.log(Joose)") | |
eval("console.log(glob())") | |
} | |
a('KindaJoose', function () { return 'exported glob' }) | |
console.log(window.glob, window.Joose) | |
View Using Joose in CommonJS modules
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
// ================================================ | |
// Using Joose in CommonJS modules | |
var Class = require('Task/Joose/Core').Class | |
exports.Circle = Class({ | |
has : { | |
radius : { | |
is : 'rw', | |
init : '123' |
OlderNewer