This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2002-2012 the original author or authors. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | |
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* SystemJS translate hook that caches transpilation results of sources that haven't changed in IndexedDB storage. | |
* In Chrome dev tools the cache is easily managed under Resources > IndexedDB > jspm | |
* There's a global dependency on Dexie.js (ex: //npmcdn.com/[email protected]/dist/dexie.min.js) | |
* Adapted from https://gist.github.com/ineentho/3ccaaec164e418f685d7 | |
*/ | |
;(function(){ | |
var db = new Dexie("jspm"); | |
db.version(1).stores({ files: "&url,format,hash,contents" }); | |
db.open(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
function addPinningSupport() { | |
var frame = $(this); | |
// Clean up | |
frame.off('load', addPinningSupport); | |
var body = frame[0].contentDocument.body; | |
$('.pinning', body).remove(); | |
frame.on('load', addPinningSupport); |