diff options
author | adhitya | 2016-04-12 07:02:39 +0000 |
---|---|---|
committer | adhitya | 2016-04-12 07:02:39 +0000 |
commit | dd83478e3fcaac98de690aa59e6288ad41a1c351 (patch) | |
tree | 38653bdf0ae95053f66777c4ac3fe5be5d8fbd33 /src/js/util/mxObjectIdentity.js | |
parent | 92f3207b50a1caca07df5c5b238212af3358905b (diff) | |
download | xcos-on-web-dd83478e3fcaac98de690aa59e6288ad41a1c351.tar.gz xcos-on-web-dd83478e3fcaac98de690aa59e6288ad41a1c351.tar.bz2 xcos-on-web-dd83478e3fcaac98de690aa59e6288ad41a1c351.zip |
Keyboard shortcuts work properly
Diffstat (limited to 'src/js/util/mxObjectIdentity.js')
-rw-r--r-- | src/js/util/mxObjectIdentity.js | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/js/util/mxObjectIdentity.js b/src/js/util/mxObjectIdentity.js deleted file mode 100644 index 778a4ea..0000000 --- a/src/js/util/mxObjectIdentity.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * $Id: mxObjectIdentity.js,v 1.8 2010-01-02 09:45:14 gaudenz Exp $ - * Copyright (c) 2006-2010, JGraph Ltd - */ -var mxObjectIdentity = -{ - /** - * Class: mxObjectIdentity - * - * Identity for JavaScript objects. This is implemented using a simple - * incremeting counter which is stored in each object under <ID_NAME>. - * - * The identity for an object does not change during its lifecycle. - * - * Variable: FIELD_NAME - * - * Name of the field to be used to store the object ID. Default is - * '_mxObjectId'. - */ - FIELD_NAME: 'mxObjectId', - - /** - * Variable: counter - * - * Current counter for objects. - */ - counter: 0, - - /** - * Function: get - * - * Returns the object id for the given object. - */ - get: function(obj) - { - if (typeof(obj) == 'object' && - obj[mxObjectIdentity.FIELD_NAME] == null) - { - var ctor = mxUtils.getFunctionName(obj.constructor); - obj[mxObjectIdentity.FIELD_NAME] = ctor+'#'+mxObjectIdentity.counter++; - } - - return obj[mxObjectIdentity.FIELD_NAME]; - }, - - /** - * Function: clear - * - * Removes the object id from the given object. - */ - clear: function(obj) - { - if (typeof(obj) == 'object') - { - delete obj[mxObjectIdentity.FIELD_NAME]; - } - } - -}; |