Skip to content

Commit

Permalink
simplified file structure, removed intro and outro
Browse files Browse the repository at this point in the history
  • Loading branch information
millermedeiros committed Feb 18, 2011
1 parent 23fc01e commit 9fda0af
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
.tmp* .tmp*
.project .project
.settings .settings/


.DS_Store? .DS_Store?
ehthumbs.db ehthumbs.db
Expand Down
5 changes: 5 additions & 0 deletions .project
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<projects> <projects>
</projects> </projects>
<buildSpec> <buildSpec>
<buildCommand>
<name>com.aptana.ide.core.unifiedBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec> </buildSpec>
<natures> <natures>
<nature>com.aptana.projects.webnature</nature> <nature>com.aptana.projects.webnature</nature>
Expand Down
14 changes: 5 additions & 9 deletions build.xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,20 +25,16 @@
<format property="build.date" pattern="MM/dd/yyyy hh:mm aa" unit="hour"/> <format property="build.date" pattern="MM/dd/yyyy hh:mm aa" unit="hour"/>
</tstamp> </tstamp>


<concat destfile="${dist.dir}/${dist.name}" fixlastline="yes" eol="unix"> <copy file="${src.dir}/signals.js" tofile="${dist.dir}/${dist.name}" />
<filelist dir="${src.dir}"> <loadfile property="SignalBinding.js" srcFile="${src.dir}/SignalBinding.js"/>
<file name="intro.js" /> <loadfile property="Signal.js" srcFile="${src.dir}/Signal.js"/>
<file name="signals.js" />
<file name="SignalBinding.js" />
<file name="Signal.js" />
<file name="outro.js" />
</filelist>
</concat>


<replace file="${dist.dir}/${dist.name}"> <replace file="${dist.dir}/${dist.name}">
<replacefilter token="::VERSION_NUMBER::" value="${version.number}" /> <replacefilter token="::VERSION_NUMBER::" value="${version.number}" />
<replacefilter token="::BUILD_NUMBER::" value="${build.number}" /> <replacefilter token="::BUILD_NUMBER::" value="${build.number}" />
<replacefilter token="::BUILD_DATE::" value="${build.date}" /> <replacefilter token="::BUILD_DATE::" value="${build.date}" />
<replacefilter token="//::SignalBinding.js:://" value="${SignalBinding.js}" />
<replacefilter token="//::Signal.js:://" value="${Signal.js}" />
</replace> </replace>


<echo message="${dist.name} built." /> <echo message="${dist.name} built." />
Expand Down
4 changes: 2 additions & 2 deletions dev/build/build.number
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Sun Jan 30 01:55:10 EST 2011 #Fri Feb 18 18:33:11 EST 2011
build.number=127 build.number=134
6 changes: 4 additions & 2 deletions dev/src/Signal.js
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,7 @@


// Signal --------------------------------------------------------
//================================================================

/** /**
* Custom event broadcaster * Custom event broadcaster
* <br />- inspired by Robert Penner's AS3 Signals. * <br />- inspired by Robert Penner's AS3 Signals.
Expand All @@ -13,7 +16,6 @@
this._bindings = []; this._bindings = [];
}; };



signals.Signal.prototype = { signals.Signal.prototype = {


/** /**
Expand Down
5 changes: 4 additions & 1 deletion dev/src/SignalBinding.js
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,7 @@


// SignalBinding -------------------------------------------------
//================================================================

/** /**
* Object that represents a binding between a Signal and a listener function. * Object that represents a binding between a Signal and a listener function.
* <br />- <strong>This is an internall constructor and shouldn't be called by regular user.</strong> * <br />- <strong>This is an internall constructor and shouldn't be called by regular user.</strong>
Expand Down Expand Up @@ -141,4 +144,4 @@
return '[SignalBinding isOnce: '+ this._isOnce +', isEnabled: '+ this._isEnabled +']'; return '[SignalBinding isOnce: '+ this._isOnce +', isEnabled: '+ this._isEnabled +']';
} }


}; };
10 changes: 0 additions & 10 deletions dev/src/intro.js

This file was deleted.

1 change: 0 additions & 1 deletion dev/src/outro.js

This file was deleted.

20 changes: 17 additions & 3 deletions dev/src/signals.js
Original file line number Original file line Diff line number Diff line change
@@ -1,14 +1,28 @@

/*jslint onevar:true, undef:true, newcap:true, regexp:true, bitwise:true, maxerr:50, indent:4, white:false, nomen:false, plusplus:false */

/*!!
* JS Signals <http://millermedeiros.github.com/js-signals/>
* Released under the MIT license <http://www.opensource.org/licenses/mit-license.php>
* @author Miller Medeiros <http://millermedeiros.com/>
* @version ::VERSION_NUMBER::
* @build ::BUILD_NUMBER:: (::BUILD_DATE::)
*/
(function(window){

/** /**
* @namespace Signals Namespace - Custom event/messaging system based on AS3 Signals * @namespace Signals Namespace - Custom event/messaging system based on AS3 Signals
* @name signals * @name signals
*/ */
var signals = window.signals = {}; var signals = window.signals = {};

/** /**
* Signals Version Number * Signals Version Number
* @type string * @type string
* @const * @const
*/ */
signals.VERSION = '::VERSION_NUMBER::'; signals.VERSION = '::VERSION_NUMBER::';


//::SignalBinding.js:://
//::Signal.js:://

}(this));
18 changes: 12 additions & 6 deletions dist/js-signals.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,23 +5,26 @@
* Released under the MIT license <http://www.opensource.org/licenses/mit-license.php> * Released under the MIT license <http://www.opensource.org/licenses/mit-license.php>
* @author Miller Medeiros <http://millermedeiros.com/> * @author Miller Medeiros <http://millermedeiros.com/>
* @version 0.5.1 * @version 0.5.1
* @build 126 (01/30/2011 01:55 AM) * @build 133 (02/18/2011 06:33 PM)
*/ */
(function(window){ (function(window){

/** /**
* @namespace Signals Namespace - Custom event/messaging system based on AS3 Signals * @namespace Signals Namespace - Custom event/messaging system based on AS3 Signals
* @name signals * @name signals
*/ */
var signals = window.signals = {}; var signals = window.signals = {};

/** /**
* Signals Version Number * Signals Version Number
* @type string * @type string
* @const * @const
*/ */
signals.VERSION = '0.5.1'; signals.VERSION = '0.5.1';



// SignalBinding -------------------------------------------------
//================================================================


/** /**
* Object that represents a binding between a Signal and a listener function. * Object that represents a binding between a Signal and a listener function.
Expand Down Expand Up @@ -166,7 +169,10 @@
} }


}; };


// Signal --------------------------------------------------------
//================================================================

/** /**
* Custom event broadcaster * Custom event broadcaster
* <br />- inspired by Robert Penner's AS3 Signals. * <br />- inspired by Robert Penner's AS3 Signals.
Expand All @@ -181,7 +187,6 @@
this._bindings = []; this._bindings = [];
}; };



signals.Signal.prototype = { signals.Signal.prototype = {


/** /**
Expand Down Expand Up @@ -385,4 +390,5 @@
} }


}; };
}(this));
}(this));
2 changes: 1 addition & 1 deletion dist/js-signals.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9fda0af

Please sign in to comment.