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 cpojer committed Oct 18, 2010
1 parent 98dc351 commit f9c7d66
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 f9c7d66

Please sign in to comment.