Skip to content

Commit

Permalink
- bits and pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
canonic-epicure committed Feb 6, 2010
1 parent ba32351 commit d527bc7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ doc
.externalToolBuilders
MANIFEST.bak
META.json
/inc/*
/inc/*
/JooseX.Bridge.Ext-*.tar.gz
18 changes: 16 additions & 2 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
.gitignore
Build.PL
Components.JS
doc/html/JooseX/Bridge/Ext.html
doc/html/JooseX/Bridge/Ext/Convertor.html
doc/html/JooseX/Bridge/Ext/LazyConvertor.html
doc/mmd/JooseX/Bridge/Ext.txt
doc/mmd/JooseX/Bridge/Ext/Convertor.txt
doc/mmd/JooseX/Bridge/Ext/LazyConvertor.txt
inc/Module/Build/Functions.pm
inc/Module/Build/Functions/DSL.pm
inc/Module/Build/JSAN/Installable.pm
inc/Module/JSAN.pm
inc/Module/JSAN/DSL.pm
lib/JooseX/Bridge/Ext.js
lib/JooseX/Bridge/Ext/Convertor.js
lib/JooseX/Bridge/Ext/LazyConvertor.js
MANIFEST
README
META.json
README.md
t/010_instantiation.t.js
t/020_inheriting.t.js
t/030_instantiation_with_traits.t.js
t/040_custom_grid_column.t.js
t/041_extclass_promoted_from_module.t.js
t/index.html
TODO.txt
META.json
4 changes: 2 additions & 2 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
# Mac OSX SMB mount metadata files
\B\._
# Avoid archives of this distribution
\bExtX.Reference.Slot-[\d\.\_]+
\.project$
^\.git\b
\.tar.gz$
^tests/lib/
ExtX.Reference.Slot-0.01
^JooseX.Bridge.Ext-[\d\.\_]+
^MYMETA.yml$
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ SYNOPSIS
========

<!-- Joose -->
<script type="text/javascript" src="/jsan/Task/Joose/Core.js"></script>
<!-- Optional JooseX.Meta.Lazy extension -->
<script type="text/javascript" src="/jsan/JooseX/Meta/Lazy.js"></script>

<!-- Ext bridge -->
<script type="text/javascript" src="/jsan/Task/ExtJS/Adapter/Ext.js"></script>
<script type="text/javascript" src="/jsan/JooseX/Bridge/Ext.js"></script>
<script type="text/javascript" src="/jsan/JooseX/Bridge/Ext/[Lazy]Convertor.js"></script>
Expand All @@ -40,6 +44,7 @@ SYNOPSIS
Ext.Container.meta.extend({
does : ExtX.Some.Role.For.Container
})


DESCRIPTION
Expand Down Expand Up @@ -68,14 +73,14 @@ EXAMPLES
})
// automatically register the class with default xtype:
// automatically register the class with its name as default xtype:
var panel = Ext.ComponentMgr.create({
xtype : 'My.Panel'
})
// "meta : JooseX.Bridge.Ext" - can be omitted:
// "meta : JooseX.Bridge.Ext" - can be omitted, custom xtype can be specified:

Class('Test.Run.Harness.Browser.UI.TestGrid', {
Expand Down Expand Up @@ -165,8 +170,8 @@ Initial attribute values and setters

This metaclass unifies two class systems, which uses different approaches to class construction. Thus appears some caveats.

Joose provides system constructor for classes and classes should use `BUILD` and `initialize` for initialization.
[Details](http://openjsan.org/go?l=Joose.Manual.Construction) Joose also uses getters and setters concepts.
Joose provides system constructor for classes and classes should use `BUILD` and `initialize` for initialization ([details](http://openjsan.org/go?l=Joose.Manual.Construction))
Joose also uses getters and setters concepts.

Lightweight class system of ExtJS, simply calls the constructor of superclass. ExtJS applies provided configuration
values directly to instance.
Expand All @@ -190,7 +195,7 @@ For example this declaration will throw an exception:
}
})

`Ext.Panel` have `setTitle` method, which Joose treats like setter, and tries to initialize the attribute with it.
`Ext.Panel` have `setTitle` method, which Joose treats like setter, and tries to initialize the attribute with it (before call to ExtJS constructor).
However the call to `setTitle` relies on already initialized instance (it will fire the 'titlechange' event), so
the exception raise.

Expand All @@ -204,7 +209,7 @@ The solution for such situations will be to use basic attributes, which do not h
}
})
[Details](http://openjsan.org/go?l=Joose.Manual.Attributes)
[Details on Joose attributes](http://openjsan.org/go?l=Joose.Manual.Attributes)


Explicit metaclass specification
Expand Down

0 comments on commit d527bc7

Please sign in to comment.