Skip to content

Commit

Permalink
Extended event module
Browse files Browse the repository at this point in the history
  • Loading branch information
zerokilobytes committed Jul 14, 2011
1 parent 81bec90 commit d9679ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Entity.js
Expand Up @@ -4,8 +4,8 @@
* GNU General Public Version 2 License
*/

(function(){
function Entity() {
(function(window){
var Entity = function() {
return Entity.Model.create(arguments[0]);
}
var ENTITY_TYPE_ALL = '1';
Expand Down Expand Up @@ -503,5 +503,6 @@

})();

if(!window.$e){window.$e=Entity;window.Entity=Entity;}
if(!window.$e || !window.Entity){window.$e=Entity;window.Entity=Entity;}

})(window);
4 changes: 2 additions & 2 deletions test.html
Expand Up @@ -4,7 +4,6 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Development</title>
<script type="text/javascript" src="https://getfirebug.com/firebug-lite-beta.js"></script>
<script src="Entity.js" type="text/javascript"></script>
<script type="text/javascript">

Expand Down Expand Up @@ -76,7 +75,8 @@
$e.Event.ready(function(){console.log('Ready >>> 1');});

function test2(){
document.getElementById('fire').fire('click');
var ace = document.getElementById("fire");
Entity.Event.fire(ace, 'click');
}
</script>
<style>
Expand Down

0 comments on commit d9679ef

Please sign in to comment.