Skip to content

Commit

Permalink
IE bug: replace class with $class
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Jan 24, 2011
1 parent ef84a2e commit 6e2918a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion js/class.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var class = function(definition) {
var $class = function(definition) {
var constructor = definition.constructor;
var parent = definition.Extends;
if (parent) {
Expand Down
10 changes: 5 additions & 5 deletions js/script.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @class
*/
var Game = class({
var Game = $class({

/**
* @return void
Expand Down Expand Up @@ -184,7 +184,7 @@ var Game = class({
/**
* @class
*/
var Player = class({
var Player = $class({

/**
* @return void
Expand All @@ -204,7 +204,7 @@ var Player = class({
/**
* @class
*/
var Computer = class({
var Computer = $class({

Extends: Player,

Expand Down Expand Up @@ -338,7 +338,7 @@ var Computer = class({
/**
* @class
*/
var Human = class({
var Human = $class({

Extends: Player,

Expand All @@ -363,7 +363,7 @@ $('#play').click(function () {

var type = $('input:radio[name=type]:checked').val();
var image = $('input:radio[name=image]:checked').val() == 0;

var game = new Game();
var player1, player2;
if (type == 0) {
Expand Down

0 comments on commit 6e2918a

Please sign in to comment.