Skip to content

Commit

Permalink
Added shine.noConflict().
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcuth committed Oct 29, 2014
1 parent e69a84d commit 7b4b7cd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<head>
<meta charset="utf-8">
<title>Moonshine Test Runner</title>


<script src="../vm/src/init.js"></script>
<script src="../vm/src/gc.js"></script>
<script src="../vm/src/EventEmitter.js"></script>
<script src="../vm/src/FileManager.js"></script>
Expand Down
1 change: 1 addition & 0 deletions vm/build/build
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ var switches = getSwitches(process.argv),


SOURCE_FILENAMES = [
'../src/init.js',
'../src/gc.js',
'../src/EventEmitter.js',
'../src/FileManager.js',
Expand Down
1 change: 1 addition & 0 deletions vm/build/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

12 changes: 12 additions & 0 deletions vm/src/init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

(function () {
var originalValue = window.shine;

window.shine = {
noConflict: function () {
window.shine = originalValue;
return this;
}
};

})();

0 comments on commit 7b4b7cd

Please sign in to comment.