Permalink
Browse files

Remove reference to ".toString(36)" in common code so it is easier fo…

…r the compiler to remove.

R=nicksantos
DELTA=3 (0 added, 1 deleted, 2 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6246


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2500 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information...
1 parent 4db52c7 commit 3b34e61099d7a2fc47d8fe845388c2a8b1871439 johnlenz@google.com committed Feb 1, 2013
Showing with 2 additions and 3 deletions.
  1. +1 −2 closure/goog/base.js
  2. +1 −1 closure/goog/events/events.js
@@ -947,8 +947,7 @@ goog.removeUid = function(obj) {
* @type {string}
* @private
*/
-goog.UID_PROPERTY_ = 'closure_uid_' +
- Math.floor(Math.random() * 2147483648).toString(36);
+goog.UID_PROPERTY_ = 'closure_uid_' + ((Math.random() * 1e9) >>> 0);
/**
@@ -1225,7 +1225,7 @@ goog.events.getUniqueId = function(identifier) {
* @private
*/
goog.events.LISTENER_WRAPPER_PROP_ = '__closure_events_fn_' +
- Math.floor(Math.random() * 2147483648).toString(36);
+ ((Math.random() * 1e9) >>> 0);
/**

0 comments on commit 3b34e61

Please sign in to comment.