Skip to content

Commit

Permalink
Make getUID return a valid HTML id value rather than a plain number
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Johnston committed Aug 8, 2011
1 parent 3a11fe7 commit f51449e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @param {Object} obj
*/
getUID: function( obj ) {
return obj && obj[ '_pieId' ] || ( obj[ '_pieId' ] = ++idNum );
return obj && obj[ '_pieId' ] || ( obj[ '_pieId' ] = '_' + ++idNum );
},


Expand Down

0 comments on commit f51449e

Please sign in to comment.