Permalink
Browse files

- changed blocks syntax again, XML style.

 - fixed the build script, updated Packager.
  • Loading branch information...
1 parent f0a122c commit da666f979fa2ced25f1d8ba0c025249f302b3a50 @kamicane kamicane committed May 1, 2010
Submodule Packager updated 4 files
+2 −2 README.md
+3 −4 helpers/array.php
+4 −0 packager
+17 −0 packager.php
@@ -181,7 +181,7 @@ try {
};
}
-//=1.2compat
+//<1.2compat>
Browser.Engine = {};
@@ -238,6 +238,6 @@ if (Browser.name == 'unknown'){
this.$exec = Browser.exec;
-///=
+//</1.2compat>
})();
@@ -43,9 +43,9 @@ var Events = this.Events = new Class({
addEvent: function(type, fn, internal){
type = Events.removeOn(type);
if (fn != nil
- //=1.2compat
+ //<1.2compat>
&& fn != $empty
- ///=
+ //</1.2compat>
){
this.$events[type] = this.$events[type] || [];
this.$events[type].include(fn);
View
@@ -161,9 +161,9 @@ var Type = this.Type = function(name, object){
object.prototype.$family = (function(){
return lower;
}).hide();
- //=1.2compat
+ //<1.2compat>
object.type = typeCheck;
- ///=
+ //</1.2compat>
}
}
@@ -370,7 +370,7 @@ Object.extend({
new Type(name);
});
-//=1.2compat
+//<1.2compat>
var Hash = this.Hash = new Type('Hash', function(object){
if (typeOf(object) == 'hash') object = Object.clone(object.getClean());
@@ -488,6 +488,6 @@ this.$unlink = function(object){
}
};
-///=
+//</1.2compat>
})();
@@ -153,10 +153,10 @@ Element.Events = {
};
-//=1.2compat
+//<1.2compat>
Element.Events = new Hash(Element.Events);
-///=
+//</1.2compat>
})();
@@ -144,11 +144,11 @@ Element.Styles = {
zIndex: '@', 'zoom': '@', fontWeight: '@', textIndent: '@px', opacity: '@'
};
-//=1.2compat
+//<1.2compat>
Element.Styles = new Hash(Element.Styles);
-///=
+//</1.2compat>
Element.ShortStyles = {margin: {}, padding: {}, border: {}, borderWidth: {}, borderStyle: {}, borderColor: {}};
View
@@ -68,11 +68,11 @@ if (!Browser.Element){
Element.Constructors = {};
-//=1.2compat
+//<1.2compat>
Element.Constructors = new Hash;
-///=
+//</1.2compat>
var IFrame = new Type('IFrame', function(){
var params = Array.link(arguments, {properties: Type.isObject, iframe: $defined});
@@ -214,7 +214,7 @@ Window.implement({
});
-//=1.2compat
+//<1.2compat>
if (window.$$ == null) Window.implement('$$', function(selector){
var elements = new Elements;
@@ -230,7 +230,7 @@ if (window.$$ == null) Window.implement('$$', function(selector){
return elements;
});
-///=
+//</1.2compat>
if (window.$$ == null) Window.implement('$$', function(selector){
return Slick.search(this.document, selector, new Elements);
@@ -324,7 +324,7 @@ var inserters = {
inserters.inside = inserters.bottom;
-//=1.2compat
+//<1.2compat>
Object.each(inserters, function(inserter, where){
@@ -346,7 +346,7 @@ Object.each(inserters, function(inserter, where){
});
-///=
+//</1.2compat>
Element.implement({
@@ -604,13 +604,13 @@ if (!document.createElement('div').contains) Element.implement(contains);
})();
-//=1.2compat
+//<1.2compat>
Element.implement('hasChild', function(element){
return this !== element && this.contains(element);
});
-///=
+//</1.2compat>
[Element, Window, Document].invoke('implement', {
@@ -661,11 +661,11 @@ window.addListener('unload', purge);
Element.Properties = {};
-//=1.2compat
+//<1.2compat>
Element.Properties = new Hash;
-///=
+//</1.2compat>
Element.Properties.style = {
View
@@ -143,8 +143,8 @@ Fx.CSS.Parsers = {
};
-//=1.2compat
+//<1.2compat>
Fx.CSS.Parsers = new Hash(Fx.CSS.Parsers);
-///=
+//</1.2compat>
@@ -55,11 +55,11 @@ Fx.Transitions = {
};
-//=1.2compat
+//<1.2compat>
Fx.Transitions = new Hash(Fx.Transitions);
-///=
+//</1.2compat>
Fx.Transitions.extend = function(transitions){
for (var transition in transitions) Fx.Transitions[transition] = new Fx.Transition(transitions[transition]);
View
@@ -165,12 +165,12 @@ Array.implement({
});
-//=1.2compat
+//<1.2compat>
Array.alias('extend', 'append');
var $pick = function(){
return Array.from(arguments).pick();
};
-///=
+//</1.2compat>
View
@@ -97,11 +97,11 @@ Event.Keys = {
'delete': 46
};
-//=1.2compat
+//<1.2compat>
Event.Keys = new Hash(Event.Keys);
-///=
+//</1.2compat>
Event.implement({
View
@@ -63,7 +63,7 @@ Function.implement({
});
-//=1.2compat
+//<1.2compat>
$clear = function(timer){
clearInterval(timer);
@@ -85,4 +85,4 @@ Function.implement({
var $try = Function.attempt;
-///=
+//</1.2compat>
View
@@ -113,7 +113,7 @@ Object.extend({
});
-//=1.2compat
+//<1.2compat>
Hash.implement({
@@ -199,4 +199,4 @@ Hash.implement({
Hash.alias({indexOf: 'keyOf', contains: 'hasValue'});
-///=
+//</1.2compat>
View
@@ -21,11 +21,11 @@ var JSON = !this.JSON ? {} : {
parse: JSON.parse
};
-//=1.2compat
+//<1.2compat>
JSON = new Hash(JSON);
-///=
+//</1.2compat>
Object.append(JSON, {
View
8 build
@@ -4,10 +4,10 @@
$stderr = fopen('php://stderr', 'w');
-require __DIR__ . '/Packager/packager.php';
+require dirname(__FILE__) . '/Packager/packager.php';
$executable = array_shift($argv);
-$package = __DIR__;
+$package = dirname(__FILE__);
$pkg = new Packager($package);
@@ -32,9 +32,9 @@ foreach ($files as $file){
fwrite($stderr, "\n");
-$output = $pkg->build_from_components($argv);
+$output = $pkg->build_from_files($files);
-if ($no_compat) $output = preg_replace("%//=1\.2compat.*?///=%s", '', $output);
+if ($no_compat) $output = preg_replace("%//<1\.2compat>.*?//</1.2compat>%s", '', $output);
echo $output;

0 comments on commit da666f9

Please sign in to comment.