This file contains hidden or 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 |
This file contains hidden or 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 () { |
This file contains hidden or 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' ], | |
This file contains hidden or 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 : {}, |
This file contains hidden or 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 | |
| } | |
| }) |
This file contains hidden or 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 | |
| }) |
This file contains hidden or 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 |
This file contains hidden or 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' ], |
This file contains hidden or 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) | |
This file contains hidden or 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