diff options
author | Jon Reid | 2012-06-25 11:07:33 -0700 |
---|---|---|
committer | Jon Reid | 2012-06-25 11:07:33 -0700 |
commit | 831e3058a9d58c5e56066d2ff90e572be17d6f7e (patch) | |
tree | aa6acda9aeddad8f93cae63b955349a442ddf01f /js/clipboard/util.js | |
parent | 82638621ed793fcb37438798363dba151efd9cd2 (diff) | |
parent | da3d11366fa6f42a99cbd8998eebd5fe572b76bc (diff) | |
download | ninja-831e3058a9d58c5e56066d2ff90e572be17d6f7e.tar.gz |
Merge remote-tracking branch 'ninja-jduran/TimelineUber' into timeline-local
Conflicts:
js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
Resolution: Use both.
Diffstat (limited to 'js/clipboard/util.js')
-rw-r--r-- | js/clipboard/util.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/js/clipboard/util.js b/js/clipboard/util.js new file mode 100644 index 00000000..a0813855 --- /dev/null +++ b/js/clipboard/util.js | |||
@@ -0,0 +1,28 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | //////////////////////////////////////////////////////////////////////// | ||
8 | // | ||
9 | |||
10 | var Montage = require("montage/core/core").Montage, | ||
11 | Component = require("montage/ui/component").Component; | ||
12 | |||
13 | var ClipboardUtil = exports.ClipboardUtil = Montage.create(Component, { | ||
14 | |||
15 | deserializeHtmlString:{ | ||
16 | value:function(htmlString){ | ||
17 | var doc = (this.application.ninja.currentDocument.currentView === "design") ? this.application.ninja.currentDocument.model.views.design.document : document, | ||
18 | clipboardHelper=doc.createElement("div"), | ||
19 | nodeList = null; | ||
20 | |||
21 | clipboardHelper.innerHTML = htmlString; | ||
22 | nodeList = clipboardHelper.childNodes; | ||
23 | clipboardHelper = null; //for garbage collection | ||
24 | return nodeList; | ||
25 | } | ||
26 | } | ||
27 | |||
28 | }); \ No newline at end of file | ||