Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (C) 2012 Google Inc. | |
2 // | |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | |
4 // you may not use this file except in compliance with the License. | |
5 // You may obtain a copy of the License at | |
6 // | |
7 // http://www.apache.org/licenses/LICENSE-2.0 | |
8 // | |
9 // Unless required by applicable law or agreed to in writing, software | |
10 // distributed under the License is distributed on an "AS IS" BASIS, | |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 // See the License for the specific language governing permissions and | |
13 // limitations under the License. | |
14 | |
15 /** | |
16 * @fileoverview | |
17 * Moves exported properties from "export" to "ses" to keep the global | |
18 * environment clean. The methods are added to ses.rewriter since | |
19 * these are not part of the public ses interface. | |
20 * | |
21 * @author jasvir@gmail.com | |
22 * \@overrides this | |
23 * \@overrides ses | |
24 * \@overrides exports | |
25 */ | |
26 | |
27 (function (ses, global) { | |
kpreid2
2013/01/02 19:48:32
no space between function and (
Jasvir
2013/01/02 20:07:27
Done.
| |
28 ses.rewriter = {}; | |
29 ses.rewriter.traverse = exports.traverse; | |
30 ses.rewriter.parse = exports.parse; | |
31 ses.rewriter.generate = exports.generate; | |
32 | |
33 // No longer need exports | |
34 delete global.exports; | |
35 })(ses, this); | |
OLD | NEW |