Skip to content

Commit

Permalink
Fixes #1040 - The id variable was overwritten somewhere else in the i…
Browse files Browse the repository at this point in the history
…nitialize method of Swiff, Swiff uses String.uniqueID for its instance name now
  • Loading branch information
Arian authored and fabiomcosta committed Oct 16, 2010
1 parent eba3fbf commit 5bcef39
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/Utilities/Swiff.js
Expand Up @@ -19,8 +19,6 @@ provides: Swiff

(function(){

var id = 0;

var Swiff = this.Swiff = new Class({

Implements: Options,
Expand All @@ -46,7 +44,7 @@ var Swiff = this.Swiff = new Class({
},

initialize: function(path, options){
this.instance = 'Swiff_' + id++;
this.instance = 'Swiff_' + String.uniqueID();

this.setOptions(options);
options = this.options;
Expand Down

0 comments on commit 5bcef39

Please sign in to comment.