diff options
author | isjusterin <erinproductions@gmail.com> | 2015-07-22 19:06:03 -0500 |
---|---|---|
committer | isjusterin <erinproductions@gmail.com> | 2015-07-22 19:06:03 -0500 |
commit | eda26599175299cd1481bc93ecfc57c4840f8705 (patch) | |
tree | 5bb7fed81f5788ed955bcc1f341667466d3c6d0c /comiccontrol/draganddrop/css.js | |
parent | 2e1397a1c1ee6bde877c351010e0fdaed43efd25 (diff) | |
download | ComicControl-3.0-master.zip ComicControl-3.0-master.tar.gz ComicControl-3.0-master.tar.bz2 |
ComicControl files to be dumped in root folderHEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'comiccontrol/draganddrop/css.js')
-rw-r--r-- | comiccontrol/draganddrop/css.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/comiccontrol/draganddrop/css.js b/comiccontrol/draganddrop/css.js new file mode 100644 index 0000000..9ffe0a0 --- /dev/null +++ b/comiccontrol/draganddrop/css.js @@ -0,0 +1,17 @@ +/* Copyright (c) 2005 Tim Taylor Consulting (see LICENSE.txt) */ + +// TODO: write unit tests +ToolMan._cssFactory = { + readStyle : function(element, property) { + if (element.style[property]) { + return element.style[property] + } else if (element.currentStyle) { + return element.currentStyle[property] + } else if (document.defaultView && document.defaultView.getComputedStyle) { + var style = document.defaultView.getComputedStyle(element, null) + return style.getPropertyValue(property) + } else { + return null + } + } +} |