Permalink
Browse files

Make getUID return a valid HTML id value rather than a plain number

  • Loading branch information...
1 parent 3a11fe7 commit f51449e259239ccd3568b3a30b12dacb910ab756 Jason Johnston committed Aug 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 sources/Util.js
View
@@ -36,7 +36,7 @@
* @param {Object} obj
*/
getUID: function( obj ) {
- return obj && obj[ '_pieId' ] || ( obj[ '_pieId' ] = ++idNum );
+ return obj && obj[ '_pieId' ] || ( obj[ '_pieId' ] = '_' + ++idNum );
},

0 comments on commit f51449e

Please sign in to comment.